![]() |
Gradients for color schemes |
Post Reply
|
| Author | |
GBrookman
Newbie
Joined: 14 November 2007 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Gradients for color schemesPosted: 14 November 2007 at 4:41pm |
|
We allow users to change color schemes and we want to change some items in our controls to reflect that change. In the attached image the tree node "Application" is painted with a GradientFill using colors XTPColorManager()->grcToolBar.clrDark and
XTPColorManager()->grcToolBar.clrLight
but these don't change on a color scheme change. Is there something I need to do to refresh them? I've tried:
XTPColorManager()->RefreshColors();
following a scheme change, but that didn't help. Is there another source for to-from gradient colors?
![]() Thanks,
Gary
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 November 2007 at 8:43am |
|
Hi,
You can draw selection using current bitmap:
CXTPOffice2007Image* pImage = XTPOffice2007Images()->LoadFile(_T("TOOLBARBUTTONS22"));
if (pImage) { pImage->DrawImage(pDC, rcItem, pImage->GetSource(3, 4), CRect(8, 8, 8, 8), COLORREF_NULL); clrWindow = COLORREF_NULL; pDC->SetBkMode(TRANSPARENT); clrWindowText = GetXtremeColor(COLOR_WINDOWTEXT); } |
|
|
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 |