Print Page | Close Window

Themes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13960
Printed Date: 05 July 2024 at 2:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Themes
Posted By: gmail
Subject: Themes
Date Posted: 09 April 2009 at 6:02am
I'm using this to set the theme of my command bars:

CXTPPaintManager::SetTheme(xtpThemeRibbon);

and while changing theme (application wide) I'm using:

XTPSkinManager()->LoadSkin(_T("theme.cjstyles"),_T("sub_theme.ini"));

and my command bars remains blue (although other application parts switch colors)? What's the problem here?



Replies:
Posted By: Oleg
Date Posted: 09 April 2009 at 7:50am
Hi,
 
Ribbon use own colors. See RibbbonSample it shows how switch them.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: gmail
Date Posted: 09 April 2009 at 9:07am
Already done that, but you're only using Office2007 themes (Aqua,Silver,Black,Blue). I have a lot of themes in external files which I'm loading at random and how to make them work with ribbon style?


Posted By: Oleg
Date Posted: 10 April 2009 at 1:29am
Hi,
 
You only can make some internal array and specify what colors of Ribbon match better with styles you have. And switch to this color after you load skin.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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