multiline tooltip |
Post Reply |
Author | |
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Posted: 07 April 2005 at 8:57am |
Hi
How can i set a multiline tooltip of an button a toolbar? When I use \r\n in SetTooltip it doesn't work. thanks |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
unfortunaly you can't We added it for next release. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Is it possible to make a workoround in the meantime.
For example somthing like this in the correct place?? m_ToolTip.SendMessage(TTM_SETMAXTIPWIDTH, 0, SHRT_MAX); This would be enable the multi line feature. When is the next version available? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
9.70 release will be really soon, please wait. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Hi,
I have now downloaded and installed the 9.70 RC1. How can i use now the multiline tooltip feature for toolbar buttons? thx Edited by jerry2000 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
pToolBar->GetControl(0)->SetTooltip(_T("line1\nline2") );
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Sorry but this does not work, only one line with the whole text is displayed!
Which class is displaying the tooltip, XTPToolTipContext ? When I find the class i can help you to find the problem. thx |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
It must. steps: 1. Open GUI_VisualStudio sample 2. comment line LoadCommandBars(_T("CommandBars")); 3. add line pCommandBar->GetControl(0)->SetTooltip(_T("line1\nline 2"));
4. First button must show multiline tip. (for 9.70 rc1 and higher) |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
I have found the problem, it works, but not everywhere!
I have 2 toolbars with 2 different styles (one Office 2003, one Longhorn) Toolbar 1 does work but toolbar 2 not You see, it is a combobox, but the toolbar also not working at a button. Any Idea?? thx |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
as I understand secont bar is simple m_wndToolBar created with CreateToolBar if so, you must assign some CommandBars to it before you create it:
CXTPCommandBars* m_pCommandBars;
m_pCommandBars = CXTPCommadnBars::CreateCommandBars(); m_wndToolBar.SetCommandBars(m_pCommandBars); m_wndToolBar.CreateToolBar ...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Thank you for the help
Sorry about that, but now it looks like that: You see the tooltip is displayed now 2 times. I have implemented the toolbar as a class derived from CXTPToolBar. In an init function i create the toolbar with following lines: m_pCommandBars = CXTPCommandBars::CreateCommandBars(); SetCommandBars(m_pCommandBars); m_pCommandBars->SetSite(this); // without this line i got an assertion if the mouse is moved over a toolbar control VERIFY(CreateToolBar(WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, pParent, AFX_IDW_TOOLBAR)); SetFlags(xtpFlagStretched|xtpFlagManualUpdate); // set new color of keyselbar SetPaintManager(CXTPPaintManager::CreateTheme(xtpThemeWhid bey)); GetPaintManager()->SetTheme(xtpThemeWhidbey); m_pOwner = this; // to get the ON_COMMAND Messages of the bar to our own class What i doing wrong? thx |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Please help, its realy important for our project.
thx |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
remove CBRS_TOOLTIPS
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
thanks
now it works fine |
|
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 |