Click to See Complete Forum and Search --> : blinking data on status bar
ohadbp
September 8th, 2001, 04:50 PM
hi,
i want to have a blinking string i my status bar.
one way to do it is to write and delete the string
over and over again but it silly.
is there a smarter/better way to do it?
ohad.
Picky
September 8th, 2001, 10:32 PM
There may be a function that does it for you, but what you said should get it to do it...
Call a function or something devoted to that, and set up a do...loop that clears the bar and then starts a timer that lasts a second, then that timer displays the string, then starts another 1 second timer, which then starts the do...loop over (which reclears bar and then goes thru again ...).
You probably were thinking that too... but just to clarify.
-Picky
John G Duffy
September 9th, 2001, 02:21 PM
Use The visible property of the containing control.
if the string is a Label then Label.Visible = True/False will make it display then disappear. Of cource you will need to use something like a timer.
Here is a simple sample program.
Start a new project. Add a timer and a label to it then paste this code into the general declarations section of the form. Run it
option Explicit
private Sub Form_Load()
Timer1.Interval = 200
Timer1.Enabled = true
Label1.Caption = "This is a Blinking Label"
End Sub
private Sub Timer1_Timer()
Label1.Visible = Not Label1.Visible
End Sub
John G
deghost
September 9th, 2001, 03:47 PM
Hi,
i actually had an opposite problem, i wanted it to stop blinking on frequent update. ;(
You don't have to "delete" the string if you want blinking, u can just set the text/caption property to the same value using a do..loop.
ofcourse this is at least as stupid as the other suggestions...
----------
The @host is everywhere!
----------
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.