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