Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Styles and themes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Styles and themes

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Styles and themes
    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++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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 (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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 (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.