Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Disabled/Grayed Ribbon Command Bar buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disabled/Grayed Ribbon Command Bar buttons

 Post Reply Post Reply
Author
Message
Aris View Drop Down
Groupie
Groupie


Joined: 01 December 2011
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aris Quote  Post ReplyReply Direct Link To This Post Topic: Disabled/Grayed Ribbon Command Bar buttons
    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.
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 300
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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));
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.