Print Page | Close Window

Why do I see two tooltips?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=9676
Printed Date: 17 July 2025 at 11:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why do I see two tooltips?
Posted By: rdhd
Subject: Why do I see two tooltips?
Date 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?
 



Replies:
Posted By: Oleg
Date Posted: 23 February 2008 at 4:16pm
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


Posted By: rdhd
Date Posted: 25 February 2008 at 2:14pm
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net