Adding menu option when document based on stencil is opened

J

Jeremy Lloyd

Hi All

Can someone explain how I can add a menu option onto a menu when a document
based on my VST/VSS is opened. For the life of me I can't figure out how.

Many thanks
Jeremy
 
J

Joseph Gasiorek

You can always add a unique User defined cell to you
document(stencil). Then on the document Open event check to see if
the cell exists. This way saved documents will also know they are
your solution.

I would then use the automation model to adjust/add a menu item.
Graham Wideman covers the menu well in his book. In the past I have
simply loaded a custom UI when my document was loaded. Working with
menus in Visio still is not perfect.
 
M

Mark Nelson [MS]

You want to add a persisted event to the document so that it runs your
add-on when the document is open. There should be a tool to help you do
this in the Visio SDK.
 
J

Jeremy Lloyd

Thanks Guys, I'll take a look.

Regards
Jeremy

Mark Nelson said:
You want to add a persisted event to the document so that it runs your
add-on when the document is open. There should be a tool to help you do
this in the Visio SDK.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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