How to differentiate a shape created from Stencil drag/drop and shape Copy/Paste 
Author Message
 How to differentiate a shape created from Stencil drag/drop and shape Copy/Paste

Suppose you have a shape shape1 created from a master, and
then you copy this shape and paste onto the same page as
shape2. Both will trigger shapeAdded event, but how can I
know shape2 is a copy of shape1 from VB?


Wed, 06 Oct 2004 04:11:59 GMT  
 How to differentiate a shape created from Stencil drag/drop and shape Copy/Paste

Quote:

>Suppose you have a shape shape1 created from a master, and
>then you copy this shape and paste onto the same page as
>shape2. Both will trigger shapeAdded event, but how can I
>know shape2 is a copy of shape1 from VB?

A shape has a Master property that refers to the master
it was created from.

Another idea is to set a custom or user-defined property
prior to copying and compare its value after copying.

Neither of these will guarantee that the two shapes are
identical except in position.  The user can modify the
original before the copy is pasted.

So it depends on your notion of "copy".

--
Reinier



Sun, 17 Oct 2004 14:18:59 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding a shape from Forms Shapes Stencil

2. Dropping shapes through VBA with shape Custom Properties setting ASK =True

3. Excel 2000 - Copying/Pasting Shapes

4. disabling copy/paste/cut on shape shortcut menu

5. Droping Visio Shape to an external Target (Drag and Drop Q)

6. Drag&Drop or Shape Connections

7. Shapes shapes shapes

8. Drag-and-Drop - Shape control?

9. Drag Drop (or Copy Paste) file(email attachment) into an application

10. Drag Drop (or Copy Paste) file(email attachment) into an application

11. Drag/Drop vs Cut/Copy/Paste

12. drag-n-drop or copy-n-paste help

 

 
Powered by phpBB® Forum Software