Print Page | Close Window

Tooltip context for docking-pane toolbars?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15140
Printed Date: 09 June 2024 at 10:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltip context for docking-pane toolbars?
Posted By: znakeeye
Subject: Tooltip context for docking-pane toolbars?
Date Posted: 09 September 2009 at 8:06am
I do the same as in your Visual Studio-sample:
 
I have a CWnd-derived pane-child. In this window I show a CXTPToolBar.
 
The problem is that I cannot apply 2007-styled tooltips to the toolbar. I've tried SetCommandBars etc, but with no success. Any ideas?


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 10 September 2009 at 4:35am
Here changes for our sample:
 
change:
class CSolutionExplorerPane : public CXTPFrameWndBase<CWnd>
 
add:
 
 InitCommandBars();
 GetCommandBars()->GetToolTipContext()->SetStyle(xtpToolTipOffice2007);
 m_wndToolBar.SetCommandBars(GetCommandBars());
 VERIFY(m_wndToolBar.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, this));
 VERIFY(m_wndToolBar.LoadToolBar(IDR_PANE_SOLUTIONEXPLORER));


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


Posted By: znakeeye
Date Posted: 11 September 2009 at 7:33am
Thank you so much! Though, I only get the title of my buttons in the tooltips ("ShowTitleAndDescription" makes no difference).
Button string: "Test\nTest2\nTest3\n" ---> "Test"
 
 
(Perhaps you should apply this change for your samples?)


-------------
PokerMemento - http://www.pokermemento.com/



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