|
-
Aug 3rd, 2006, 05:09 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] blink text from status bar
how to blink a text from status bar?
i tried the timer with visible true and false but its not good.
-
Aug 3rd, 2006, 05:20 AM
#2
Re: blink text from status bar
what interval did you have for the timer?
that is the best way, but if your interval is too small, it will barly flicker
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 3rd, 2006, 05:34 AM
#3
Re: blink text from status bar
VB Code:
Dim isBlank As Boolean
Private Sub Form_Load()
Timer1.Interval = 1000
StatusBar1.Panels.Item(1).Text = "Blink"
isBlank = True
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If isBlank Then
StatusBar1.Panels.Item(1).Text = ""
isBlank = False
Else
StatusBar1.Panels.Item(1).Text = "Blink"
isBlank = True
End If
End Sub
this should work!!
-
Aug 3rd, 2006, 05:58 AM
#4
Re: blink text from status bar
Here is how to flash an entire panel in the statusbar.
VB Code:
Private intPanelToFlash As Integer
Private Sub FlashSBPanel(intPanelNo As Integer)
intPanelToFlash = intPanelNo
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Static blnFlash As Boolean
If blnFlash = True Then
StatusBar1.Panels(intPanelToFlash).Bevel = sbrRaised
blnFlash = False
Else
blnFlash = True
StatusBar1.Panels(intPanelToFlash).Bevel = sbrInset
End If
End Sub
Private Sub cmdFlashSBPanel_Click()
Timer1.Enabled = True
FlashSBPanel 1
End Sub
Private Sub cmdStopFlash_Click()
Timer1.Enabled = False
StatusBar1.Panels(intPanelToFlash).Bevel = sbrInset
End Sub
-
Aug 3rd, 2006, 07:06 AM
#5
Thread Starter
Fanatic Member
Re: blink text from status bar
thanks to all of you guys it works now.. 
br
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
|