HOWTO : Create a Move Visio.Shape Event

N

news.micrsoft.com

I have some Visio shapes that I have programmatically placed by using
C-sharp. I'm looking for some way to raise an event when a user moves a
shape around the screen. I have looked in and out of the SDK and cant find
anything.

Basically I want to have an event so that when A user click on a large shape
(cloud) and moves it, it will raise and event.

Then in the event I want to find all the shapes that were inside that cloud
and move them to the new location of wherever the cloud got move. I can do
this part if I know the event for moving a shape.

I thought about putting all the shapes into a group so then when a user
moves the group they all move, but then I lose the ability to treat the
shapes inside the cloud as individual shapes that can be manipulated on
their own.

Any ideas would be great
THANKS !!

bourdett

PS I'm already using MouseUp events to control when a shape is right/left
clicked on but this event doesn't get called during a shape move.
 
M

Mark Nelson [MS]

Shape movement and many other actions that a user can take are captured by
the CellChanged event. The particular cell that changed is passed in the
event notification. The PinX and PinY cells are the ones that you would
watch for to detect movement.
 

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