(Event to) Detect shape position changes 
Author Message
 (Event to) Detect shape position changes

Hi there,

Is there a way to detect when a shapes position has changed? Just like you
have the "Document_ShapeAdded" event, an event to detect a shapes position
has been changed?

Regards,
Ronald Kersten



Tue, 31 May 2005 22:10:46 GMT  
 (Event to) Detect shape position changes
you might consider using the cell changed event and then
test for the appropriate cell.
Al
Quote:
>-----Original Message-----
>Hi there,

>Is there a way to detect when a shapes position has

changed? Just like you
Quote:
>have the "Document_ShapeAdded" event, an event to detect
a shapes position
>has been changed?

>Regards,
>Ronald Kersten

>.



Wed, 01 Jun 2005 02:28:17 GMT  
 (Event to) Detect shape position changes
To which object belongs the cell changed event? To a master object?

Ronald.


Quote:
> you might consider using the cell changed event and then
> test for the appropriate cell.
> Al
> >-----Original Message-----
> >Hi there,

> >Is there a way to detect when a shapes position has
> changed? Just like you
> >have the "Document_ShapeAdded" event, an event to detect
> a shapes position
> >has been changed?

> >Regards,
> >Ronald Kersten

> >.



Fri, 03 Jun 2005 17:26:33 GMT  
 (Event to) Detect shape position changes
Ronald:

You can indeed use the CellChanged event, which is available from several
objects including Shape and Page. It's also available from Document, but
only via AddAdvice, not via WithEvents.

All that said, you might also consider using a ShapeSheet formula that
watches PinX and PinY, and then uses CallThis or RunAddon to fire the code,
something like:

User.WatchMove = PinX + PinY + CallThis(...)

Graham

--
---------------------------------------------------
Graham Wideman
Microsoft Visio MVP
---------------------------------------------------
Book/Tools:
Visio 2002 Developer's Survival Pack
Resources for programmable diagramming at:
http://www.diagramantics.com

.


Quote:
> To which object belongs the cell changed event? To a master object?

> Ronald.



> > you might consider using the cell changed event and then
> > test for the appropriate cell.
> > Al
> > >-----Original Message-----
> > >Hi there,

> > >Is there a way to detect when a shapes position has
> > changed? Just like you
> > >have the "Document_ShapeAdded" event, an event to detect
> > a shapes position
> > >has been changed?

> > >Regards,
> > >Ronald Kersten

> > >.



Sat, 04 Jun 2005 14:51:05 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Shape position change

2. How to detect an instance of a shape that was changed from its master in Visio5

3. What event to capture when a shape changes

4. Tracking shape position and rotation WHILE moving

5. size and position of shapes

6. Shape position and size

7. Inserting shape on fixed position on different pages

8. Shapes on controls and mouse pointer position

9. recordset record position change upon the Datacombo change...

10. recordset record position change upon the Datacombo change...

11. recordset record position change upon the Datacombo change...

12. Shapes shapes shapes

 

 
Powered by phpBB® Forum Software