1 Attachment(s)
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.
Attachment 185228
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.
Re: TooltipText in a Label control inside a usercontrol as a container
Quote:
Originally Posted by
Eduardo-
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.
Re: TooltipText in a Label control inside a usercontrol as a container
I see (the compiled exe + compiled ocx), I never noticed that before.
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.
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 :rolleyes: