Shape Added event

A

Andy

Visio 2003

I'm handling the Shape Added event on a document. However, I would like
to distinguish between a master being dragged from the stencil and
dropped on the diagram from a copy and paste of a shape on the diagram.
I cen't see anything obviously different between them once I recieve
the event.

Any Suggestions?

Thanks, Andy
 
A

Al Edlund

are you attempting to differentiate between a user dragging and dropping
from a stencil (which is a special case drawing), and a user copying from a
drawing (generic) ? You might start by checking the master property of the
shape being added and see if that differentiates what you need to know.
al
 
D

David Lacassagne

You can define a user defined cell in the master called SOURCE and set
its value to "".

In the Shape Added event:
1- test the value of the SOURCE cell of the added shape. If it is "",
then it has been dragged from the stencil, else it is a copy/paste.
2- set the value of the SOURCE cell of the shape to "DUMMY"

Hope this helps,

David.


Andy a écrit :
 

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