Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » Grid's tool-tip background color Collapse All
Subject Author Date
Offer Har Oct 16, 2007 - 6:41 AM

Dear Support,

I need to change the color of the grid’s tool-tip’s background color - Please advise as to how this could be done.

Regards,
Ron.

Technical Support Oct 16, 2007 - 12:39 PM

Although this feature is not supported, but it can be implemented in quite a simple way.

1) Create a CExtPopupMenuTipWnd-derived class and override the CExtPopupMenuTipWnd::_DoPaint() virtual method. Copy the method body from the base class and modify the code that sets the background color.
2) Override the CExtGridBaseWnd::OnAdvancedPopupMenuTipWndGet() virtual method in your grid and return a pointer to your CExtPopupMenuTipWnd object.

Still we can regard your question as a feature request. We could add the SetBkColor()/GetBkColor() and SetTextColor()/GetTextColor() methods in the CExtPopupMenuTipWnd class so you can use these methods instead of overriding the _DoPaint() method. What do you think about this?

Offer Har Oct 16, 2007 - 2:36 PM

Dear Support,

For the time being I chose a simpler solution, by changing the default color for all the tool-tips by setting m_colors[COLOR_INFOBK], as your suggested solution will consume too much time, which I am lacking right now.

Your suggestion sound as the way to go. Please let me know when this feature is implemented.

P.S. still waiting for the excel-type tool-tips for the grid...

Regards,
Ron.