Print Page | Close Window

Disabled/Grayed Ribbon Command Bar buttons

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=22687
Printed Date: 25 December 2024 at 12:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabled/Grayed Ribbon Command Bar buttons
Posted By: Aris
Subject: Disabled/Grayed Ribbon Command Bar buttons
Date Posted: 20 August 2015 at 6:30am
Hello,

I am using monochrome icons (pure black and white icons) for the buttons on the Home tab of the Ribbon Command Bar. I think that disabled/grayed icons are generated automatically by your product if I provide the "normal" icon but in my case, there is no difference between "normal" (xtpImageNormal) and "disabled" (xtpImageDisabled) icons.
I have tried to modify the icons and add some color or a different intesity over them (that is, not pure black and white) and in this situation, it works properly and disabled icons are generated automatically.

So, is there any way to obtain grayed/disabled icons from my pure black and white icons collection?

Thanks in advance.



Replies:
Posted By: astoyan
Date Posted: 24 August 2015 at 10:51pm
This can be achieved by changing disabled icon colors:

m_pRibbonBar->GetPaintManager()->m_clrDisabledIcon.clrLight.SetCustomValue(RGB(0xff, 0, 0));
m_pRibbonBar->GetPaintManager()->m_clrDisabledIcon.clrDark.SetCustomValue(RGB(0, 0, 0xff));



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