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
Printable View
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
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.
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
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.