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 » CExtStatusControlBar issues & questions Collapse All
Subject Author Date
Offer Har Dec 6, 2010 - 12:09 AM

Dear Support,

I needed some tooltips for my status-bar. By default, the tooltip box was displayed at the location of the cursor, which is not very good - it obscured the text of the pane (I need to display extra information about the text in the pane, like when you stand on the time and see the date at the task-bar of windows) so I found the variable m_nAdvancedTipStyle in CExtStatusControlBar, and changed it to CExtPopupMenuTipWnd::__ETS_BALLOON which is much better, howver, still the tooltip obscure the text of the pane a little - there is a need to raise it bu 2-3 pixels.

Also, why doesn’t m_nAdvancedTipStyle have any access function?

Does the tip control support HTML?




Technical Support Dec 9, 2010 - 11:16 AM

The balloon tooltip is displayed by the CExtStatusControlBar::OnAdvancedPopupMenuTipWndDisplay() virtual method. But it uses a globally provided popup menu tip window which implements the positioning behavior you want to change. So, you should override the CExtStatusControlBar::OnAdvancedPopupMenuTipWndGet() virtual method which should return pointer to the instance of your CExtPopupMenuTipWnd-derived class. Your class should implement popup menu tip window which positions itself using the current horizontal cursor location. The CExtPopupMenuTipWnd::Show() virtual method should be overriden for that.

Technical Support Dec 6, 2010 - 9:36 AM

The CExtStatusControlBar::OnAdvancedPopupMenuTipWndDisplay() virtual method is invoked to display a screen tip. The rcExcludeArea parameters specifies a rectangular area which should not be intersected with the screen tip window. You can override this virtual method and invoke the parent class’s method with a larger exclude area rectangle in its parameter.
The m_nAdvancedTipStyle parameter allows you to customize the style of the popup screen tip window.

Offer Har Dec 6, 2010 - 10:35 PM

Another thing I saw was that when I changed to style to __ETS_BALLOON the tooltip was always at the top-left position of the pane - and I want it at the top with X of the cursor - how can I do it?