Ribbon caption flaw |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Afraid its designed.
First prompt string - Description, second - tooltip, 3rd - caption, 4th - keyboard tip.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |