![]() |
Theme is not changing |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: Theme is not changingPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2007 at 6:29am |
|
Sorry! it is not getting into the (message == M_SYSCOLORCHANGE) block. Please ignore the previous reply.
|
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2007 at 6:40am |
|
Hi,
Thanks. I solved the issue, the problem exists only becoz of my code. Anyway Thanks.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |