Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Ribbon caption flaw
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon caption flaw

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon caption flaw
    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?
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: 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
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.