Print Page | Close Window

Refreshing Menus, CommandBars, and Panes?

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=1827
Printed Date: 28 September 2024 at 7:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Refreshing Menus, CommandBars, and Panes?
Posted By: AdrianM
Subject: Refreshing Menus, CommandBars, and Panes?
Date Posted: 21 February 2005 at 12:21pm

How do I refresh ALL the Menus, CommandBars, and Panes when the following happens?  Currently, everything stays the old color.

 

void CMainFrame::OnThemeColorsBlue()

{

     XTPColorManager()->SetLunaTheme(xtpSystemThemeBlue);

}




Replies:
Posted By: Oleg
Date Posted: 22 February 2005 at 2:24am

XTPPaintManager()->RefreshMetrics();

pCommandBars->RedrawCommandBars();

 



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


Posted By: AdrianM
Date Posted: 23 February 2005 at 3:29pm

Hi Oleg,

I tried it, and it didn't work.  Any idea why?

void CMainFrame::OnThemecolorsOlive()

{

XTPColorManager()->SetLunaTheme(xtpSystemThemeOlive);

 

#ifdef _XTP_INCLUDE_COMMANDBARS

CXTPPaintManager::RefreshMetrics();

GetCommandBars()->RedrawCommandBars();

#endif

}




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