Print Page | Close Window

System menu color change

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=2883
Printed Date: 09 November 2025 at 12:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: System menu color change
Posted By: jitu
Subject: System menu color change
Date Posted: 13 September 2005 at 8:11am

If i change the system menu color, it does not change the menu color of my application. Why does it happen? Anysolution to this.

I am using OnSYsColorChange() event and tried with

XTPColorManager()->RefreshColors();
XTPPaintManager()->RefreshMetrics();

but none of these functions change the color of the menu. Pl. suggest.



-------------
Regards



Replies:
Posted By: Oleg
Date Posted: 13 September 2005 at 2:11pm

May be you use custom theme and don't call base member in RefreshMetrics?

Must. Check this in our samples.



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


Posted By: jitu
Date Posted: 16 September 2005 at 1:45am

Somehow i managed with the following code... Is it correct?

CXTPPaintManager::SetTheme(  xtpThemeOfficeXP);
 COLORREF  ref = XTPColorManager()->GetColor(COLOR_MENUTEXT  );
 XTPColorManager()->SetColor(COLOR_BTNTEXT ,ref);
 XTPColorManager()->SetColor(XPCOLOR_MENUBAR_TEXT&nb sp; ,ref);

 XTPPaintManager()->RefreshMetrics();
 GetCommandBars()->RedrawCommandBars();



-------------
Regards



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