Search

Custom pictures for commands using icons without satellite DLLs by Carlos Quintero Vivar

Closed
as Postponed Help for as Postponed

17
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Suggestion
ID: 114769
Opened: 10/31/2005 1:51:39 AM
Access Restriction: Public
1
Workaround(s)
To provide custom and transparent pictures for commands of add-ins have been always difficult in the MS dev tools since the late 90's and it continues to be extremely difficult. The official documentation for the latest tool, VS 2005, is the following:

Visual Studio Automation and Extensibility
How to: Display a Custom Icon on the Add-in Button

http://msdn2.microsoft.com/en-us/library/ms228771(en-US,VS.80).aspx

So, you need to use not only VS 2005, but also resgen.exe, al.exe, explorer.exe and even notepad.exe! Not to mention that it does not mention how to make transparent pixels...
Details (expand)
Product Language
English
Version
Visual Studio 2005
Category
Extensibility
Operating System
Windows XP Professional
Operating System Language
Spanish
Proposed Solution
Modify the following extensibility methods:

- Commands.AddNamedCommand
- Window.SetTabPicture
- CommandBarButton.Picture

to accept a managed (not COM) icon (not bitmap) image and get rid of satellite DLLs (managed or not) and bitmaps with R=0, G=254, B=0 to specify the transparency.

I am really tired of dealing with this issue for the last 7 years and answering the same question over an over in the newsgroups and forums.

Regards,

Carlos Quintero
Microsoft Most Valuable Professional (MVP) for .NET, VB and extensibility.
Benefits
Faster Development
Improved Reliability
Improved Installation
Other Benefits
Faster Development
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/15/2005 at 2:38 PM
This is not being postponed to the release after Orcas, it is just being postponed to a later milestone in Orcas. We will look at fixing this in the Orcas timeframe