Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Themes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Themes

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: Themes
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.