Results 1 to 6 of 6

Thread: TooltipText in a Label control inside a usercontrol as a container

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    TooltipText in a Label control inside a usercontrol as a container

    Hello guys, I am using a usercontrol as a control container, and I have found that windowsless controls do not show their tooltiptext, does anyone have an idea why this happens, on a frame or picturebox control this does not happen, but in a usercontrol the tooltiptext does not show displayed in the Image and Label controls.

    I leave an example in case you want to take a look.

    tooltiptext.zip
    leandroascierto.com Visual Basic 6 projects

  2. #2
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,700

    Re: TooltipText in a Label control inside a usercontrol as a container

    Hello Leandro,

    Very weird, really.

    But there are two situations where it does not happen, or call them workarounds:

    1) Place the windowless controls into another container (container inside your container UserControl) like a PictureBox.
    2) Put the control container UserControl in a separate project and use the compiled OCX.

    Any of these things seems to solve the issue.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    Re: TooltipText in a Label control inside a usercontrol as a container

    Quote Originally Posted by Eduardo- View Post
    Hello Leandro,

    Very weird, really.

    But there are two situations where it does not happen, or call them workarounds:

    1) Place the windowless controls into another container (container inside your container UserControl) like a PictureBox.
    2) Put the control container UserControl in a separate project and use the compiled OCX.

    Any of these things seems to solve the issue.

    Thanks Eduardo, I think the picturebox one is going to be the only solution, because from an ocx is where I detected this problem, my real usercontrol is compiled as ocx, in the ide it works fine, but when you compile the final application + ocx the same thing happens.
    leandroascierto.com Visual Basic 6 projects

  4. #4
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,700

    Re: TooltipText in a Label control inside a usercontrol as a container

    I see (the compiled exe + compiled ocx), I never noticed that before.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    Re: TooltipText in a Label control inside a usercontrol as a container

    I did some tests like making a hook to the window creation ClsName "VBBubbleRT6" and "VBBubble" then subclass it, when the label is on a form a lot of msg arrive but when I hover the mouse over the laberl that is on the UC I only receive the WM_TIMER when entering and exiting the mouse.
    leandroascierto.com Visual Basic 6 projects

  6. #6
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,700

    Re: TooltipText in a Label control inside a usercontrol as a container

    Fixing the issue from an OCX/UserControl seems a lot of work (not impossible, but I don't think it worth the effort).
    And I don't know if it is at all possible to show a tooltip from code (I mean to fire the standard VB6 tooltip).
    That would be the main obstacle.
    The rest is to check whether there are windowless controls with tooltips, and then set a timer and check where the mouse is at every moment, and see if it needs to give a push to some tooltip.

    Better call MS for a service pack

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