Print Page | Close Window

Ribbon caption flaw

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12405
Printed Date: 23 June 2025 at 11:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon caption flaw
Posted By: znakeeye
Subject: Ribbon caption flaw
Date Posted: 11 October 2008 at 9:44am
XTP 12.0.2.
 
Take a look at Excel 2007 -> Insert -> Chart. The tooltips have multiple lines. I tried this with XTP:
 
ID_EXCEL_CHART_LINE "Insert a line chart.\n\nLine charts are used to display trends over time.\nLine"
 
pRibbonGroup->Add(xtpControlButton, ID_EXCEL_CHART_LINE);
 
That yields a button with erroneous caption:
"Line charts are used to display trends over time."
 
 
Inside CXTPControl::SetPrompt we get these values:
m_strTooltipText == ""
m_strDescriptionText == "Insert a line chart."
m_strCaption == "Line charts are used to display trends over time."
m_strKeyboardTip == "Line"
 
Obviously, that is wrong.
 
Perhaps you should parse the string more intelligently?



Replies:
Posted By: Oleg
Date Posted: 13 October 2008 at 5:55am

Hi,

Afraid its designed.
First prompt string - Description, second - tooltip, 3rd - caption, 4th - keyboard tip.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 16 October 2008 at 4:17am
Well, if you go backwards you get better logic:
 
Keyboard tip = 1 line, get last line.
Caption = 1 line, get second last line.
Tooltip = Multiple lines, get all but first line.
Description = 1 line, get first line.
 
This would make sense to me.



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