Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Skins vs. Themes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skins vs. Themes

 Post Reply Post Reply
Author
Message
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Topic: Skins vs. Themes
    Posted: 08 December 2006 at 1:01pm

 

I have found 6 classes involved with the appearance of the UI:

 

CXTPSkinManager

CXTThemeManager

CXTPPaintManager

CXTPDockingPaneManager

CXTPPropertyGrid

CXTPOffice2007FrameHook

 

I have an MDI application that uses all but the CXTPSkinManager and this gives me an Office2007 look’n’feel:

 

m_ThemeManager.SetTheme(xtThemeOffice2003);

paintManager::SetTheme(xtpThemeRibbon);
dockingPaneManager.SetTheme(xtpPaneThemeOffice2007);

m_propertyGrid.SetTheme(xtpGridThemeWhidbey);

 

Now I tried adding a 3rd party skin:

 

XTPSkinManager()->LoadSkin(GetStylesPath() + _T("AA.msstyles"));

 

At this point several dialogs are skinned, but my MDI frame and property grid, etc. still have the 2007 look.

 

If I comment out the 4 SetTheme calls and call CXTPOffice2007FrameHook:: EnableOffice2007Frame(0) then things look pretty reasonable, although the close box and thumbtack in docking panes look old.

 

Is this the proper way to implement skins? Are skins a complete replacement for themes? What about CXTPOffice2007FrameHook?

 

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.125 seconds.