Print Page | Close Window

Skins vs. Themes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=5728
Printed Date: 31 May 2024 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skins vs. Themes
Posted By: esc67
Subject: Skins vs. Themes
Date 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?

 




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