Print Page | Close Window

Icon effects

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=13073
Printed Date: 06 May 2024 at 1:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icon effects
Posted By: gmail
Subject: Icon effects
Date Posted: 05 January 2009 at 3:51pm
Your CXTPCommandBars have the following cool effect on icons:

XTP_COMMANDBARS_ICONSINFO* pIconsInfo=XTPPaintManager()->GetIconsInfo();
    pIconsInfo->bUseDisabledIcons=TRUE;
    pIconsInfo->bIconsWithShadow=TRUE;
    pIconsInfo->bUseFadedIcons=TRUE;

I'm wondering how can I achieve this effect on some other icon regardless of CXTPCommandBars (i.e. CStatic icon object)? I've checked CXTPDrawHelpers and CXTPImageManager but can't seem to achieve this with those drawing helper classes. Please help!



Replies:
Posted By: Oleg
Date Posted: 06 January 2009 at 1:38am
Hi,
 
You can call XTPPaintManager()->DrawImage(...) to draw it with current style.


-------------
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