Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Why do I see two tooltips?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why do I see two tooltips?

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Why do I see two tooltips?
    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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.