|
-
Sep 19th, 2000, 06:32 PM
#1
Thread Starter
Frenzied Member
THis is what I want to do
Freeze the screen of my program -
Shape1.Forecolor = vbblue
shape1.refresh
Sleep 100
Shape1.Forecolor = vbred
shape1.refresh
Sleep 1000
Shape1.Forecolor = vbgreen
shape1.refresh
Sleep 1000
Shape1.Forecolor = vbyellow
shape1.refresh
Sleep 1000
Unfreeze the screen of my program
What Would Happen is the shape
after 4 second2 would change
its color to yellow.. Not blue then
red then green then yellow..
KNow of a way to do that?
-
Sep 19th, 2000, 06:46 PM
#2
Please elaborate. I don't really understnad what you want to do.
Is it Blue > Red > Green > Yellow then keep looping this?
-
Sep 19th, 2000, 06:56 PM
#3
Thread Starter
Frenzied Member
No.
Thats just an example.
I basicly want to do things
to the screen and not have
the program register it till
I say the code that unlocks
it..
You understand?
-
Sep 19th, 2000, 07:01 PM
#4
_______
<?>
Code:
'tough to do..shape has no forecolor
'
'if you use fill color you can use a timer [Timer1]
'add a shape [Shape1]
'
'cut and paste this code.
Public x As Integer
Public Function checkColor(x As Integer)
Select Case x
Case 0
Shape1.FillColor = vbRed
Case 1
Shape1.FillColor = vbYellow
Case 2
Shape1.FillColor = vbGreen
Shape1.FillStyle = 1
End Select
End Function
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 4000
End Sub
Private Sub Timer1_Timer()
Call checkColor(x)
x = x + 1
If x = 3 Then Timer1.Enabled = False
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 19th, 2000, 07:06 PM
#5
Thread Starter
Frenzied Member
Let me explain again
No no.
thanks .. but thats not it.
I would like to actually
use bltbit to put a image
on the screen and then
tell the screen to run
through code and not
change. and then refresh
the screen ( so that it
refreshes it but really
doesnt look like it did)
and then tell the screen
to catch up and start reacting
again.
thanks.
-
Sep 19th, 2000, 07:12 PM
#6
_______
<?>
Have fun!
Why would you run code and then tell the system no code has been run! I really don't understand the concept. Basically, I do believe you put a timer on the button. If button pressed it does nothing till timer counts to 4..then it runs the code...repeat the process..everything is behind itself in appearances.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 20th, 2000, 03:10 AM
#7
Conquistador
what do you mean?
why don't you just change it when you want to?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|