Oct 7th, 2002, 04:12 AM
#1
Thread Starter
Junior Member
Can I have a colourful status line ?
Hi,
The status line control come with VB is grey in colour with black text.
How can I have part of status bar with other background colour, text colour and blinking ?
Thanks a lot.
Oct 7th, 2002, 05:02 AM
#2
Hyperactive Member
Re: Can I have a colourful status line ?
Originally posted by ric
Hi,
The status line control come with VB is grey in colour with black text.
How can I have part of status bar with other background colour, text colour and blinking ?
Thanks a lot.
I think you cannot change back and fore color of th th status bar, but to avoid this, I have a simple trick , Instead of this bar use a label with whatever colors you want, borderstyle =1 and appearance = 3d , and show messages,
For blinking text use timer
Just see the attachment
Gary
Attached Files
Oct 7th, 2002, 06:21 AM
#3
Here is a cool way to "Flash" a panel in a statusbar.
VB Code:
Private Sub FlashSBPanel(PanelNo As Integer)
PanelToFlash = PanelNo
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Static x As Boolean
If x = True Then
StatusBar1.Panels(PanelToFlash).Bevel = sbrRaised
x = False
Else
x = True
StatusBar1.Panels(PanelToFlash).Bevel = sbrInset
End If
End Sub
Private Sub cmdFlashSBPanel_Click()
FlashSBPanel 3
End Sub
Private Sub cmdStopFlash_Click()
Timer1.Enabled = False
StatusBar1.Panels(PanelToFlash).Bevel = sbrInset
End Sub
To add colors and such, download the StatusPanel code from this link. http://www.coderoom.com/forms_vb7.html
Last edited by Hack; Oct 7th, 2002 at 06:34 AM .
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