CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: status bar

  1. #1
    Guest

    status bar

    I want to use statusbar to display some infomation when I move my mouse over
    any menu or toolbar,how can i do it?
    thank you


  2. #2
    Join Date
    Mar 2000
    Posts
    9

    Re: status bar

    at the property mouse move you write (of the toolbar):

    statusbar1.text = 'the information you want (it's a string)
    but first you have to set the style of the status bar to sbrText. You can do that from the Property Pages.


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: status bar

    Handling Menu can be achieved only thru subclassing. Take a look at the MSDN article ID : Q185451
    It shows a sample of how to display help messages when any menu -item gets focus.

    Essentially it involves subclassing and looking for WM_MENUSELECT message. When you get that, determine the active item, and display some message appropriate to it.
    I have the code, but is messed up quite a bit, because once i worked on it!!.. so i am not posting.

    There may be a couple of samples on Codeguru articles section... check it out

    RK

  4. #4
    Guest

    Re: status bar

    or u can use a label which is what i use. put the code in the MouseMove event of the button

    Label1.Caption = "blah"
    that will change the caption of the label each time u mouse over it.


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

Featured