Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

AddNamedCommand2 - Toolbar and menu icons

$
0
0
I was glad to see AddNamedCommands2 added to the DTE.Commands since it lets you control the icons/text displayed. I hated having text in my toolbars with VS2003. But I'm still having trouble getting what I want.

I want to display icons only in the toolbar, and icons+text in the menu (as is typical for most applications)  I'm trying to turn on toolbar and menu icons for a command. To get Icons only in my toolbar, I use:

vsCommandStyle

.vsCommandStylePict

However, if I add my command to the menu too, the icon disapears.  If I use

vsCommandStyle.vsCommandStylePictandText, I get the icon and text in the menu, but also the text in the toolbar (which is like in in VS2003 and what I want to avoid).

Anyone know if there anyway of getting icons in my menu without adding text to my toolbar (short of creating two commands)?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>