Print Page | Close Window

Changing the system theme

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=2237
Printed Date: 08 July 2024 at 5:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing the system theme
Posted By: ianp
Subject: Changing the system theme
Date 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

 




Replies:
Posted By: Oleg
Date 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


Posted By: ianp
Date 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?

 



Posted By: ianp
Date 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




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