Visio 2003 Add-in

D

David SEYARET

I develop a Visio 2003 Addin using VB.net. It works fine but i can't do the
followings :
- Add a menu wich call functions of my add-in
- Add a contextual menu wich call functions of my add-in

There is no sdk at the momment and no examples on that.

Any idea ??

The solution could by add-ons but ... How to create a Visio 2003 Add-on
using VB.NET ????

Thanks.

David SEYARET
(e-mail address removed)
 
G

Graham Wideman \(Visio MVP\)

David:

The brief answer is this: COM Addins and the Visio UI are two pieces of
technology that were developed independently, and hence getting them to
communicate is non-obvious.

Probably the most expeditious way to do it is to use the QueueMarkerEvent
AddOn that's installed with Visio 2002 SR1 and 2003, as an intermediary.

If you are using the UIObject model (Doc or App.CustomMenubars and so on),
you specify QueueMarkerEvent in MenuItem.AddonName, and provide some string
that you choose in AddonArgs.

On the Addin side, your addin must set up an event listener for the Marker
event (using either Application WithEvents or
Application.EventList.AddAdvise, for example). In your handler, you inspect
the argument to be sure that the Marker is from your menu item, and if so
which one. Note that you have to get the argument info from
Application.EventInfo.

Details in Help for these various objects.

Graham
 
M

Mai-lan [MS]

Hi, David: To call into your add-in, you can use the QueueMarkerEvent addon
or the QueueMarker shapesheet event. The best place to learn more about how
to use the addon is:
http://www.msdn.microsoft.com/libra...en-us/odc_2003_ta/html/odc_landvisio02_ta.asp

The title of the article is Using the QueueMarkerEvent Add-on in Visio
Solutions, and it has sample code. In Visio 2003, we also ship the same
QueueMarkerEvent addon, which works the same way, or the QueueMarker
shapesheet event, which you can read more about in the Visio 2003 developer
documentation.

Thanks,
Mai-lan
 

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