Tooltip context for docking-pane toolbars? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
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 |