show icon while toolbar button is disabled.

Status
Not open for further replies.
S

Saeed

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

"Saeed" <Saeed> wrote in message

news:A7A8145D-B963-4B04-8777-EF839D88D07E@microsoft.com...
> 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?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
wisedave Missing icon that show message was forwarded, etc Using Outlook 1
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
M New Calendar Appointments: Conditionally turn off reminder and show time as free Using Outlook 5
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
N Outlook 365 How to show all calendars at startup? Outlook VBA and Custom Forms 0
Victor.Ayala Automated way to check the option "Show this folder as an email Address Book" Outlook VBA and Custom Forms 2
R Sent emails show iCloud mail account not the alias Using Outlook 2
J Names in sent items suddenly show as Bob Smith (bobsmith@sample.com) Using Outlook 3
S Visual indicator of a certain property or to show a macro toggle Outlook VBA and Custom Forms 2
Horsepower Contacts added from iPhone don't show up in Outlook Using Outlook 2
C All Gmails don't show in Outlook 2019 Using Outlook 2
C How to use VBA to show only items x days old or more Outlook VBA and Custom Forms 1
L Option to Show Cancelled Appointments Using Outlook 0
Z How to show concatenated categories in list task view? Using Outlook 2
M Outlook .com group does not show up in Outlook for office 365 home Using Outlook 3
F Appointment Show All Fields Using Outlook 1
G Calendar View in Outlook Office 365 - Doesn't show enough hours, and the 30/60 min choice isn't the solution Using Outlook 4
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
V Outlook Macro to show Flagged messages Outlook VBA and Custom Forms 2
F How to show assigned tasks under certain mailbox? Using Outlook 4
Witzker social connector 2010 does not show all emails to or from contact Using Outlook 3
Witzker social connector 2010 does not show all emails to or from contact Using Outlook 0
S Outlook.com birthdays show up 1 day late on iPhone contacts list Using Outlook.com accounts in Outlook 27
A Outlook 2016 Will Not Show Any Data In the People Pane Using Outlook 17
Rupert Dragwater Email flag does not show up in Outlook2013 Using Outlook 13
S Show Total Number Of Items Not Displaying Using Outlook 9
Z Tasks from some users show up as emails Using Outlook 4
Caio "From" field doesn't show extra email addresses in Outlook 2016. Using Outlook.com accounts in Outlook 6
O Worksheet doesn't show on jumplist Using Outlook 1
J Outlook 2013 when clicking To in a new email show Company names Using Outlook 0
C Outlook 2016 doesn't show contacts in address book Using Outlook 2
K Daily task list > show tasks on the exact due date and not on the "current date" Using Outlook 1
Rupert Dragwater Some mailboxes show deleted items as not read Using Outlook 5
C Discovery search does not show autoforwarded messages Exchange Server Administration 1
Thorsten show the correct calendar on start Outlook VBA and Custom Forms 5
M Marco doesn't show up when using Alt-F8 Outlook VBA and Custom Forms 2
I Windows 10 - .msg files on disk show Explorer popup error Using Outlook 5
Phillip Show mail items in folder macro Outlook VBA and Custom Forms 2
H How to show recipient email address? Using Outlook 0
H Is it possible to create a view that only show the first task in a list? Using Outlook 1
Diane Poremsky Make the Address Book show only e-mail addresses, not fax numbers Using Outlook 0
G Outlook does not show new appointments in To-Do-Bar Using Outlook 0
L How to show Delivered-To field in Inbox Using Outlook 1
T Desktop alerts show but no emails found Using Outlook 1
oliv- How to select an mailitem in explorer with "show as conversation" Outlook VBA and Custom Forms 8
N To do bar - show more than 30 days of appointments Using Outlook 0
V move emails to windows folder and show sender details Using Outlook 7
M No Show Group on ribbon Using Outlook 8
J Outlook Rules not show Master Category List Using Outlook.com accounts in Outlook 4
A Show ALL of today's appointments in To-Do Bar Using Outlook 1

Similar threads

Back
Top