-
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?
-
Please elaborate. I don't really understnad what you want to do.
Is it Blue > Red > Green > Yellow then keep looping this?
-
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?
-
<?>
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
-
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.
-
<?>
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.
-
what do you mean?
why don't you just change it when you want to?