Changing Color on a Disabled Button

P

PS

All -

I really need help with this one. any pointers or direction for this
will be a big help.

Background -

I have an Outlook Addin developed in VSTO 2005 SE for Outlook 2003. I
create a Command Bar Button on new emails which can be pressed by the
users and then they send email (If pressed it stamps a MAPI property).
When the recipient recieves the email - based if the MAPI property
exists we make the button disabed as per the business requirements.

All this works fine.

Issue -
What business users want is when the button is in disabled taxt - it
should have red in color and be bold (to make it more prominent) .

I dont see any option to do this when the button is in disabled state
at all. Everything can be done in enabled state but not in disabled
state.

Can anybody please help.

Thanks
 
K

Ken Slovak - [MVP - Outlook]

Does your button have an image on it? Use a different image for the button
just before you disable the button. That's about the best you can do.
 
P

PS

Ken

Thanks for the reply.

The issue I am facing is that i need to either use the image on the
whole of button - so that i can make it have bold text/red color.

I am currently using an image but it only takes the icon position in
the beggining. cant seem to find out how to make it come across the
complete button
 
K

Ken Slovak - [MVP - Outlook]

If it's msoButtonIconAndCaption then you can't cover the entire surface,
only the icon portion. If you change it to msoButtonIcon it will get
smaller. Your users will have to settle for what can be done, not what they
want.
 
P

PS

Completety agree on ur view - the users will have to settle for what
MS provides vs what they really fancy.

But the issue here is - this is the CEO of your firm who wants it
personally and ofcourse you want to try to accomodate him.

anyways what I have done yesterday is keep the button enabled and
pressed always (in the state when it was normally disabled) and hence
its a little more prominent than the disabled button. Seems to satisfy
for now.

Thanks for all the help though - really appreciate it.
 
K

Ken Slovak - [MVP - Outlook]

Even CEO's have to live with what's possible. If he doesn't feel that's
enough he's free to purchase MS and direct that the feature he wants is
added to Outlook and Office.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top