Print Page | Close Window

Own Theme Menu Problem

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=12438
Printed Date: 28 February 2025 at 7:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Own Theme Menu Problem
Posted By: Ocrana
Subject: Own Theme Menu Problem
Date Posted: 14 October 2008 at 9:11pm
Hello,

I have changed the menu in my app to a style, like the MSMoney Sample do.
CXTPPaintManager::SetCustomTheme(new CMsMoneyTheme(RGB(140, 163, 196), RGB(91, 125, 173), RGB(122, 149, 187), RGB(74, 111, 165)));
GetCommandBars()->RedrawCommandBars();

The Menu is changed as expected but it occour also on other dialogs, but I want to use the Custom Theme only on the CommandBars of the dialog where I call this.
So is there a way to make this changes only on one dialog and leave the others as without?

Thanks,
Ocrana



Replies:
Posted By: Oleg
Date Posted: 15 October 2008 at 7:20am
Hi,
 
Call GetCommandBars()->SetPaintManger(new CMsMoneyTheme(RGB(140, 163, 196), RGB(91, 125, 173), RGB(122, 149, 187), RGB(74, 111, 165)));
instead.


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


Posted By: Ocrana
Date Posted: 15 October 2008 at 7:27am
Perfect. Many 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