Print Page | Close Window

Theme colors

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=3015
Printed Date: 05 July 2024 at 1:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Theme colors
Posted By: Kenneth
Subject: Theme colors
Date Posted: 11 October 2005 at 9:19am

We have a custom dialogbar control has the ability to use the background gradient fill function of tookit Pro.  In the OnEraseBkgnd() function we call:

XTPPaintManager()->GradientFill(pDC,rc,m_clrDark,m_clrLig ht,TRUE);

where m_clrDark and m_clrLight are set according to the theme selected.  Is it possible to use the XTPPaintManager()->GetXtremeColor(x) to obtain to correct values for m_clrDark and m_clrLight for all themes, including those for the three Luna themes?  If so, what are the correct index's for the GetXtremeColor function.  Currently we have to hardcode the RGB values to obtain the correct Luna values.




Replies:
Posted By: Oleg
Date Posted: 11 October 2005 at 11:37pm

Hello, try

XTPPaintManager()->GradientFill(pDC,rc,XTPColorManager()- >grcDockBar,TRUE);

or

XTPPaintManager()->GradientFill(pDC,rc,XTPColorManager()- >grcToolBar,TRUE);

 

 



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



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