How to catch an UML shape doubleclick event from outside Visio 2002

O

Oyvind

The .NET-application I am writing starts an instance of Visio, hooks
up to several events through an event sink and generally controls and
monitors whatever the user does. I use the Microsoft.Interop.Visio
interop that comes with Visio 2002 SDK.

Visio version: Visio for Enterprise Architects(10.0.525)
..NET version: 2003 Version 7.1.3088
Framework: Version 1.1.4322

The question is:
How can I hook onto the doubleclick event of a shape in a Visio 2002
page? The purpose of this is to replace the default properties dialog
with my own, thus the default must be cancelled. (The missing event is
"QueryShapePropertiesDisplay")

In VBA it is possible to replace the "EventDblClick" of a shape
through

Cell aCell;
aCell = MyShape.get_Cells("EventDblClick");
aCell.Formula = "SomeVBAFunction";

I could write a VBA function to do this, but I really want to do this
from inside my .NET application.

There must be a way to hook up to this event from outside Visio. Every
suggestion is appreciated!

Best regards
Øyvind Øyen
 

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