Results 1 to 3 of 3

Thread: Can I have a colourful status line ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2001
    Location
    Hong Kong
    Posts
    31

    Unhappy 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.

  2. #2
    Hyperactive Member CHAMPGARY's Avatar
    Join Date
    Jul 2002
    Posts
    386

    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 Attached Files

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Here is a cool way to "Flash" a panel in a statusbar.
    VB Code:
    1. Private Sub FlashSBPanel(PanelNo As Integer)
    2. PanelToFlash = PanelNo
    3. Timer1.Enabled = True
    4. End Sub
    5.  
    6. Private Sub Timer1_Timer()
    7. Static x As Boolean
    8. If x = True Then
    9.     StatusBar1.Panels(PanelToFlash).Bevel = sbrRaised
    10.     x = False
    11. Else
    12.     x = True
    13.     StatusBar1.Panels(PanelToFlash).Bevel = sbrInset
    14. End If
    15. End Sub
    16.  
    17. Private Sub cmdFlashSBPanel_Click()
    18. FlashSBPanel 3
    19. End Sub
    20.  
    21. Private Sub cmdStopFlash_Click()
    22. Timer1.Enabled = False
    23. StatusBar1.Panels(PanelToFlash).Bevel = sbrInset
    24. 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
  •  



Click Here to Expand Forum to Full Width