Print Page | Close Window

Duplicate tooltips for CXTPStatusBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18586
Printed Date: 04 October 2024 at 7:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Duplicate tooltips for CXTPStatusBar
Posted By: trunkmonkey
Subject: Duplicate tooltips for CXTPStatusBar
Date 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



Replies:
Posted By: Oleg
Date 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



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