Right-Mouseclick Menu

G

Guido

Hello altogether,

i have developed an add-in for visio. Now i want to handle
right-mouseclick-events. I know how to add actions to specific shapes through
the shapesheet. But I want to add functionality to the general context menu.
The menu item should always be available using the right mouseclick. Is there
a solution with c# or VB.Net?

Best,
Guido
 
G

Guido

I have checked the visio sdk, but only found the flowchart example. But in
this example, they put the functions in the shapesheet of the shapes.
 
K

Konrad Anton

Guido said:
I have checked the visio sdk, but only found the flowchart example. But in
this example, they put the functions in the shapesheet of the shapes.

You could use the QUEUEMARKEREVENT function in the ShapeSheet formula
language to put a magic string in the event stream. Then you install a
MarkerEvent handler and parse every incoming MarkerEvent's magic string,
hoping one of them looks like yours.

I recommend the ActiveDirectory example as a starting point; they seem
to do just that there.

--Konrad
 

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