Print Page | Close Window

Theme is not changing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7125
Printed Date: 13 November 2025 at 2:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Theme is not changing
Posted By: Ashok
Subject: Theme is not changing
Date Posted: 14 May 2007 at 7:09am

Hai,

   I have implemented xtpThemeOffice2003 for my commandbar.So, my application coming good with blue color in commandbar(menu bar, toolbar etc.,).But the problem is when I am changing the color scheme(changing the display property of the desktop) to olive green / sliver the commanbar theme is not changing, it keep remains as default blue. What is the problem? please help.



Replies:
Posted By: Oleg
Date Posted: 14 May 2007 at 7:43am

It can be only if

1. you call somewhere SetLunaTheme to use only blue colors
2. OnFrameWndMsg was not called - for example you override CmainFrame::OnWndMsg and didn't call base method.


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


Posted By: Ashok
Date Posted: 15 May 2007 at 1:56am
Thanks
 
 How can I change the statusbar theme from calssic style to xtpThemeOffice2003 (like default blue,olive green,silver). Any samples?


Posted By: Oleg
Date Posted: 16 May 2007 at 5:50am
Office 2003 doesn't draw statusbar with blue/olive colors - it uses standard colors for statusbar.


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


Posted By: Ashok
Date Posted: 13 June 2007 at 4:11am
Hi,
  I haven't use SetLunaTheme anywhere in my code and I doesn't have any OnWndMsg or OnCmdMsg like that. The problem is when my application is running that time if I change the color scheme to olive green or silver, the commandbar is not changing to the present color scheme. If I stop & run my application again it is changing to the present color scheme. But all your example projects, when it is running and if I am change the color scheme, immediately commandbars is changing to the present color scheme. Please help.
https://forum.codejock.com/uploads/20070613_041004_test.zip - uploads/20070613_041004_test.zip


Posted By: Oleg
Date Posted: 13 June 2007 at 5:33am
Hi,
 
 
open Source\CommandBars\XTPCommandBars.cpp  file and set breakpoint in
 
1. beginning OnFrameWndMsg method - check if it was called.
 
2. in (message == WM_SYSCOLORCHANGE) block - check if was called when you change windows theme.


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


Posted By: Ashok
Date Posted: 13 June 2007 at 6:26am

Hi,

No, it is getting inside into the (message == WM_SYSCOLORCHANGE) block when I am changing the color scheme. What is the problem? Please give solution.



Posted By: Ashok
Date Posted: 13 June 2007 at 6:29am
Sorry! it is not getting into the (message == M_SYSCOLORCHANGE) block. Please ignore the previous reply.


Posted By: Ashok
Date Posted: 13 June 2007 at 6:40am
Hi,
  Thanks. I solved the issue, the problem exists only becoz of my code. Anyway 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