How does one find the window handle for the tooltips in a statusbar?
I am working with a multi-panel statusbar.
Printable View
How does one find the window handle for the tooltips in a statusbar?
I am working with a multi-panel statusbar.
why do you need to find the handle for tooltips in a statusbar?
What you want to achieve?
or...are u trying to display the tooltips in the status bar?
If you are trying to display the tooltips in statusbar then right click on status bar select the properties then selet Panels tab. there is an option for you to set the required text as a tool tip for each and every panel. Select the required index and enter the required tool tip text in "Tool Tip text box".
Yes, cssriraman is right!
and if you want to display other control's tooltips in the status bar when u move ur mouse pointer over the controls, maybe this will help:
VB Code:
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) 'Display the tooltips for the Command1 button in the status bar StatusBar1.Panels(1).Text = Command1.ToolTipText End Sub ________________________________________________________________ Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) 'Remove the tooltips from the statusbar when ur move ur mouse pointer to somewhere else StatusBar1.Panels(1).Text = "" End Sub
Hope this will help!
No, i am not trying to display tooltips in a statusbar...i am trying to find the window handle for the tooltips in a STATUSBAR as mentioned in my first post....
WildSurf...you're are guessing at my intentions, however the code you provided won't work for Statusbar tooltips.
Example:
Placed in the mouse move event or wherever
statusbar1.Panels(1).ToolTipText = "1st Panel"
statusbar1.Panels(2).ToolTipText = "2nd Panel"
I look forward to someone answering my question as stated.
yup, my bad, sorry. I'm guessing ur intentions because u didn't answer ccsriraman qs about what are u trying to do with it..Thats why i'm just trying to provide u alternative way if u want to display the tooltips.
And the other thing is that cssriraman already provides the way to display the statusbar's tooltips, so the code that i provided is not for displaying the statusbar's tooltips, but for displaying other object's i.e. commandbutton tooltips in the statusbar.
i'm looking forward for anybody to answer ur qs too :D