Styles and themes |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 06 November 2014 at 4:24am |
Is there an example on how to use Styles and Themes together?
If e.g. I selected a style like this: XTPResourceImages()->SetHandle(_T("Office2010.dll"),_T("Office2010Black.ini")); I expect that my ribbon, command bars, property editor, controls etc become is a black look. It seems to work for the ribbon when calling XTPPaintManager()->SetTheme(xtpThemeRibbon); However for the docking panes and for the property editor I have to call m_myDockingPanes.SetTheme(xtpPaneThemeOffice2007Word); m_myPropertyEditor.SetTheme(xtpPaneThemeOffice2007Word); Or what? How do I match the Styles with the Themes? How do I get my app to look consistent? And even more strange, how do I control the tool tips on my controls? -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Ok, I found out that on the command bar I can call:
m_myDockingPanes.SetTheme(xtpPaneThemeResource); Which I expect uses the stuff from the Office2010Black resource? But, there is no such resource theme for the property editor m_myPropertyEditor.SetTheme(xtpPaneThemeResource); <- not working -cpede |
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Oh, my mistake I should of cause use xtpGridThemeResource.
What about Tree View controls? Setting SetTheme(xtpControlThemeResource) on a CXTPTreeCtrl does not seem to make is Office2010Black? -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
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 |