![]() |
Theme colors |
Post Reply ![]() |
Author | |
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, try XTPPaintManager()->GradientFill(pDC,rc,XTPColorManager()- >grcDockBar,TRUE); or XTPPaintManager()->GradientFill(pDC,rc,XTPColorManager()- >grcToolBar,TRUE);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |