Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Image for pulldown menu

1 REPLY 1
Reply
Message 1 of 2
wesbird
281 Views, 1 Reply

Image for pulldown menu

Hi

 

  I'm close to finish my first Vault Addin. I like to add some image to my pulldown menu items just like Doug did for his Thunderdome project. It does not works. please check the attached screenshots. 

 

  Here is the code 

            CommandItem TaskReportItem = new CommandItem("ABCD.Command.TaskReport", "Task Report")
            {
                Image = Icons.Report,
                ToolbarPaintStyle = PaintStyle.TextAndGlyph,
            };

I also use the similar code to  add image to some File/Change Order context menu items, those works fine. 

 

 

 

Thanks for your help

Wes

 

Windows 10 64 bit, AutoCAD (ACA, Map) 2023
1 REPLY 1
Message 2 of 2
Daniel.Du
in reply to: wesbird

Hi Wesley,

 

Trust everything goes well 🙂 

 

Did you look into this blog post? http://justonesandzeros.typepad.com/blog/2010/03/command-icons.html . And did you check the format and size of the ico file? You can send us a sample project for more investigation if it still does not work for you. 



Daniel Du
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report