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
 
Top