Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Duplicate tooltips for CXTPStatusBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Duplicate tooltips for CXTPStatusBar

 Post Reply Post Reply
Author
Message
trunkmonkey View Drop Down
Newbie
Newbie


Joined: 18 February 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote trunkmonkey Quote  Post ReplyReply Direct Link To This Post Topic: Duplicate tooltips for CXTPStatusBar
    Posted: 23 June 2011 at 12:28pm
I've got a CXTPStatusBar-derived status bar that contains CXTPStatusBarPane-derived panes. Works great, except when I tried yesterday to make a multi-line tooltip for one of the panes, I got what is pictured below. First, the multi-line version pops up and looks just like I wanted. Then, about half a second later the single line tooltip ALSO pops up.





Here's the code I'm using to set the tooltip. This is within my status bar pane class.
    CString tooltip;
    tooltip.Format( "System Configuration (S): %s", GetChangesDescription(sysconfigdiff) );
    tooltip.AppendFormat( "\nProgram (P): %s", GetChangesDescription(progdiff) );
    tooltip.AppendFormat( "\nDocumentation (D): %s", GetChangesDescription(diff) );
    SetTooltip( tooltip );


If anyone can help shed light on why this is happening, I'd greatly appreciate it.



Stephen
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: 28 June 2011 at 6:18am
Hi,

If you have line like m_wndStaurbar.EnableTooltips(); - just comment it - it activates OS tooltip additionally to our own.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.