Print Page | Close Window

Disabled/Grayed 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=2365
Printed Date: 07 July 2025 at 12:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabled/Grayed Command Bar buttons
Posted By: Pokemon
Subject: Disabled/Grayed Command Bar buttons
Date Posted: 11 June 2005 at 7:22pm

I am using 24bits bitmap for my CommandBar buttons.  When a button is disabled, CommandBar shows a dark gray box with little detail.  Can a disabled button look more like a disabled button in Office 2003.

For testing purposes, I tried using the printer bitmap in Office 2003, and it does not grayed correctly.

Can I use 2 bitmaps for a toolbar button?  One for Enabled and the other for disabled.

Thank you for your help!

 




Replies:
Posted By: Oleg
Date Posted: 12 June 2005 at 8:47am

1. You can set option

pCommandBar->GetPaintManager()->GetIconsInfo()->bUs eDisabledIcons = TRUE;

it will generate disabled icons

2. You can create disabled bitmap manually and set it

pCommandBar->GetImageManager()->SetIcons(... , xtpImageDisabled);

 



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