Disabled/Grayed Ribbon Command Bar buttons |
Post Reply |
Author | |
Aris
Groupie Joined: 01 December 2011 Status: Offline Points: 10 |
Post Options
Thanks(0)
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.
|
|
astoyan
Admin Group Joined: 24 August 2013 Status: Offline Points: 304 |
Post Options
Thanks(0)
|
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)); |
|
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 |