Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - 12.0.1 tooltip bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

12.0.1 tooltip bug

 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: 12.0.1 tooltip bug
    Posted: 29 October 2009 at 4:48am
Using XTP 12.0.1.
 
pToolTipContext->ShowTitleAndDescription();
 
IDS_BUTTON_MAGNIFY "Magnifying glass\nMagnifying glass"
m_pToolBar->GetControls()->FindControl(ID_MAGNIFY_GLAS)->SetCaption(IDS_BUTTON_MAGNIFY);
 
The result:
 
However, if I add a dot to the text, the result is correct!
"Magnifying glass\nMagnifying glass."
 
The result:
 
Has this been fixed?
PokerMemento - http://www.pokermemento.com/
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: 02 November 2009 at 8:49am
Do you think second one is more informative for users ? ;)
 
Its special case of CXTPToolTipContext::FilterToolTipMessageHelper:
 

if (m_bShowTitleAndDescription && tc.lpszDescription &&

tc.lpszTitle && (_tcscmp(tc.lpszDescription, tc.lpszTitle) == 0))

{

free(tc.lpszDescription);

tc.lpszDescription = 0;

}

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: 02 November 2009 at 1:44pm

This is not my code ;)

Your code makes sense, but it gave me a lot of translation to do :P
PokerMemento - http://www.pokermemento.com/
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.