Results 1 to 7 of 7

Thread: vb6 statusbar tooltips

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    169

    Question vb6 statusbar tooltips

    How does one find the window handle for the tooltips in a statusbar?
    I am working with a multi-panel statusbar.

  2. #2
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: vb6 statusbar tooltips

    why do you need to find the handle for tooltips in a statusbar?

    What you want to achieve?
    CS

  3. #3
    Lively Member
    Join Date
    Apr 2006
    Location
    Planet Earth
    Posts
    64

    Talking Re: vb6 statusbar tooltips

    or...are u trying to display the tooltips in the status bar?
    I'm Still learning!
    satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
    Ur opinions helps me to be better!


    Appreciation Triggers Another Good Deeds.

  4. #4
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: vb6 statusbar tooltips

    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".
    CS

  5. #5
    Lively Member
    Join Date
    Apr 2006
    Location
    Planet Earth
    Posts
    64

    Re: vb6 statusbar tooltips

    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:
    1. Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    2.  
    3. 'Display the tooltips for the Command1 button in the status bar
    4. StatusBar1.Panels(1).Text = Command1.ToolTipText
    5.  
    6. End Sub
    7. ________________________________________________________________
    8.  
    9. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    10.  
    11. 'Remove the tooltips from the statusbar when ur move ur mouse pointer to somewhere else
    12. StatusBar1.Panels(1).Text = ""
    13.  
    14. End Sub

    Hope this will help!
    I'm Still learning!
    satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
    Ur opinions helps me to be better!


    Appreciation Triggers Another Good Deeds.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    169

    Exclamation Re: vb6 statusbar tooltips

    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.
    Last edited by vb_lover; Apr 29th, 2006 at 03:57 PM.

  7. #7
    Lively Member
    Join Date
    Apr 2006
    Location
    Planet Earth
    Posts
    64

    Re: vb6 statusbar tooltips

    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
    I'm Still learning!
    satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
    Ur opinions helps me to be better!


    Appreciation Triggers Another Good Deeds.

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