Why do I see two tooltips? |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
Posted: 23 February 2008 at 12:01pm |
In our app we have implemented docking panes. When I move over the icons on a pane (auto-hide, close), I get the codejock tooltips that we set to be the office 2007 style.
But I also get the standard (old yellow) tooltip too. That is, two sets of tooltips are showing whenever I move over one of the icons.
I have traced the origin of both tooltips. One context is from the frame and that is the 2007 style since we set the frame's context to be that style. This tip is showing because CWnd walks the pre-translate tree and the frame has a successful hit test when I am over one of the icons.
The other context is coming from the CXTPDockingPaneTabbedContainer, which has its own tooltip context. We are not setting its style to the 2007 style. I can add code to set the style. The context is filtering the tooltip message in it's OnCmdMsg.
For now, I overrode OnCmdMsg in a derived container class and copied the code from the CJ base class and commented out the call to get the manager and then get the tip context from the manager and calling the filter function.
But since the frame seems to be handling tips for the icons on the docking pane, whey is the docking pane tabbed container also doing tips?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Can you try reproduce it with some our sample ?
It can be possible only if you manually call EnableTooltips() for CXTPDockingPaneTabbedContainer. if so, just remove this call.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
I found we have our own tabbed container class derived from the CJ one. I also found a call to EnableTooltips on the container as you thought.
We are pretty used to enabling tips on any non-modal window so the coder just naturally added that call. Removing the call shuts down the tips from the frame.
Thanks.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |