Results 1 to 1 of 1

Thread: message TB_GETTOOLTIPS fails

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    169

    Exclamation message TB_GETTOOLTIPS fails

    An interesting discovery...

    If the toolbar's maximum width is less than the forms width, the normal thing to do is change the toolbar1.width so that its less than the form.width so that all of the buttons are viewable.

    However this causes TB_GETTOOLTIPS which returns the handle to the tooltip window to always return zero. This of course prevents other tooltip messages from being invoked. Like if you wanted to change the delay time or pop time of the tooltips, or fix the ONTOP bug.

    The work around to this bug is to set the toolbar to its maximum width before setting it to its reduced width, BUT THE TOOLBAR MUST BE VISIBLE WHEN DOING SO.

    My other post mentions the only viable way to determine the true width of the toolbar especially if it contains combo boxes or other non-standard buttons.
    http://www.vbforums.com/showthread.p...32#post3908532

    Using messages TB_GETBUTTON , followed by TB_GETRECT, summing the results of each button in a loop.
    Last edited by vb_lover; Jun 7th, 2012 at 11:06 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