Usually the masking doesn't look bad if you supply a PNG image with
transparency set in the alpha layer of the image. However, you can get the
state of a button in a getImage() callback to supply the appropriate image
you want.
In a getEnabled() callback you'd store the states of each button you want to
handle that way and then check the states in the getImage() callback. Then
you know what image to supply.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Saeed" wrote in message
...
I have added few buttons to toolbar. I am using VSTO 2005. These buttons
have
icons which are added using .mask and .picture properties. If I disable
the
button I am able to see greyed out button text, but the icon image is
replaced by greyed mask which is not looking good. Is there any way to
show
my own light colored icon instead when the toolbar button is disabled?