Print Page | Close Window

Styles and themes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=22449
Printed Date: 26 April 2024 at 9:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Styles and themes
Posted By: cpede
Subject: Styles and themes
Date 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: cpede
Date Posted: 06 November 2014 at 4:36am
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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: cpede
Date Posted: 06 November 2014 at 4:59am
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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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