Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Display tooltip for a custom control Collapse All
Subject Author Date
Offer Har Nov 24, 2011 - 2:20 AM

Dear Support,

I have a custom control in which I need to display a tooltip according to certain logic. I did it by over-riding the ON_WM_MOUSEMOVE event, in which I do my internal logic. If I  decided that I need to display a tooltip I run this code:

            CExtPopupMenuTipWnd& tooltip = CExtPopupMenuSite::g_DefPopupMenuSite.GetTip();
            CRect rc;
   = pt.y-13;
            rc.bottom = pt.y-9;
            rc.left = pt.x-5;
            rc.right = pt.x-3;


I have two problems:

1. There is a very bad flickering - each time I move the mouse, and the tooltip is supposed to be displayed, the tooltip redraws itself - how do I prevent it?

2. The Show function receives a rectangle called rcExcludeArea - I don’t understand what ids the meaning of the rectangle - isn’t a point enough? If I want to display the tooltip at a certain point, what should I do?



Technical Support Nov 28, 2011 - 1:44 PM

The rcExclude parameter specifies a rectangle in screen coordinates. The screen tip will be visible until the mouse is inside this rectangle. We suspect you specified a rectangle in some wrong coordinate system.

Offer Har Nov 30, 2011 - 12:29 AM

Dear Support,

This does not make sense... it is more rcShowTip than rcExclude. Even from observations, the tip is display when the cursor is inside this rectangle, not outside this rectangle - please verify your logic.