Print Page | Close Window

Gradients for color schemes

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=8790
Printed Date: 14 November 2025 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Gradients for color schemes
Posted By: GBrookman
Subject: Gradients for color schemes
Date Posted: 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



Replies:
Posted By: Oleg
Date 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



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