Format Behavior/OnDoubleClick

G

genc ymeri

Hi,
I have a master which on double click to pop up a new message ("Hello
world") and to add a new page in the active document.

Hi can I do that. I created a Macro but it doesn't work. Should I do an
Add-On ?

Any advice is very much appreciated !!!
 
D

dani

Hi

assumed your macro is named TestMacro, you can do it this way:

- Open the shapesheet of the master
- Go to section Events
- At "EventDblClick" set the formula RUNADDON("ThisDocument.TestMacro")
 
G

genc ymeri

Dani,
Sorry I had to give a lit bit more info. I have VCD in C# form. I just
can't see the DblClick event for the Shape object.

Any idea !

Thanks a lot though.
 
A

Al Edlund

this from the msdn site....

Note When you are programming the ShapeSheet for documents loaded in the
control, you will not be able to use the CALLTHIS function, which calls a
VBA macro in the document. The Visio drawing control does not execute VBA
code, so any use of the CALLTHIS function fails silently.

al
 
G

genc ymeri

HI Al Edlund,
My attention is not to use any VBA code but to make a delegation, (or to
assign a method pointer) to the shape.dblclick event in a C# code.
 
M

Mark Nelson [MS]

There is no double click event for a shape. You will have to choose another
notification method such as putting an Action item into the shape context
menu.
 
M

Mark Nelson [MS]

Let me point out Heidi Munson's alternative in the visio.developer forum
that demonstrates how to utilize the Shapesheet double click event to
trigger an automation event.

--
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