A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

show icon while toolbar button is disabled.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 26th 09, 12:25 PM posted to microsoft.public.outlook.program_addins
Saeed
external usenet poster
 
Posts: 13
Default show icon while toolbar button is disabled.

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?
Ads
  #2  
Old August 26th 09, 02:31 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default show icon while 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.

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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where did my Spelling (ABC) icon on the toolbar go? Basharat A. Javaid Outlook - General Queries 1 August 26th 08 01:29 PM
The Office Button & Quick Access Toolbar to show up in Outlook AnthandWom Outlook - Installation 1 July 7th 08 03:36 PM
Changing Color on a Disabled Button PS Add-ins for Outlook 5 January 16th 08 06:59 PM
Mail icon missing in IE toolbar anlsn Outlook Express 3 June 26th 06 10:50 AM
Toolbar button for show gridlines? [email protected] Outlook and VBA 1 February 14th 06 06:20 AM


All times are GMT +1. The time now is 08:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.