Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - m_dDisabledAlphaFactor / m_dDisabledBrightnessFact
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

m_dDisabledAlphaFactor / m_dDisabledBrightnessFact

 Post Reply Post Reply
Author
Message
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Topic: m_dDisabledAlphaFactor / m_dDisabledBrightnessFact
    Posted: 03 December 2007 at 1:52am
I used to use:
CXTPImageManager::m_dDisabledAlphaFactor = 4.0;
CXTPImageManager::m_dDisabledBrightnessFactor = 2.0;

But in 11.2.1 now the Office 2000 theme has super black disabled icons.
Using the new default I see now of 1.0 and 0.5 in XTPImageManager.cpp doesn't help. The disabled icons are still drawn correctly with Office XP/2003/2007 style themes for command bars, but not with native XP or Office 2000 themes.



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2007 at 3:29pm
Hi,
 
I think you had bOfficeStyleDisabledIcons = TRUE;
 
XTPPaintManager()->GetIconsInfo()->bOfficeStyleDisabledIcons = TRUE
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2007 at 3:44pm
Did bOfficeStyleDisabledIcons always exist? I tried it now with TRUE and FALSE, neither one seems to matter for any theme Office 2000 or 2003, etc.

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2007 at 3:45pm
When I said Old Version above, I think I used to use 9.8.1 for my previous releases.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2007 at 1:22am
Call  XTPPaintManager()->GetIconsInfo()->bOfficeStyleDisabledIcons = TRUE;
in last lines - after you set theme.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2007 at 9:08am
That does not work.
GetCommandBars()->GetPaintManager()->GetIconsInfo()->bOfficeStyleDisabledIcons = TRUE;
does though...
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.063 seconds.