How to do "Move shape over to connect shape" like org chart?

H

Hin

In org chart, when we move one shape on top of another shape,
it will automatically connect them up.

I know that:
- Shape.SpatialSearch(...) can be use to serach for shapes overlapped
- CellChanged event can be used to capture the move of the shape

However, how can i know when should i connect the shapes up?
User may just move one shape over another without releasing the mouse button.
I can't use the MouseUp event as i need to make it compatible with 2002.

Thanks.
 
M

Mark Nelson [MS]

Wait until Visio fires a NoEventsPending event. This means that the current
set of actions is done and Visio has no more input to process.
 

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