Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Changing the system theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing the system theme

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: Changing the system theme
    Posted: 17 May 2005 at 9:05am

Is it possible to change the SystemTheme while my application is running?

Currently I use the following code from the MDIForm_Initialize event to set the SystemTheme on none XP workstations:

CommandBarsGlobalSettings.ColorManager.SystemTheme = xtpSystemThemeBlue

But I would like to allow the users to change this setting from an Options form, however, using the following code has no effect.

CommandBarsGlobalSettings.ColorManager.SystemTheme = xtpSystemThemeOlive

 

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: 18 May 2005 at 4:32am

The problem that you need to notify that color was changed.

option 1 Send. WM_SYSCOLORCHANGED to your frame

option 2. change Visual theme to same: 

ComamndBars.VisualTheme = ComamndBars.VisualTheme

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2005 at 6:15am

Thanks oleg, works like a charm.

One additional question. How do I set the VisualTheme for the ReportControl?

 

Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2005 at 6:18am

I've since discovered that this doesn't work for WorkSpaceTabs. Existing tabs retain their theming, new tabs get the new theme.

How can I reset the theming for the Tab Workspace?

Thanks

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.