Description

The selected object(s) are about to be moved or have just been moved.

Syntax

Private Sub object_MoveSelected(Overlay, Object, AboutToMove)

The MoveSelected Event syntax has these parts:

PartDescription
objectA McGraphOverlay object.
OverlayA McGraphOverlay object.

the event source overlay.

ObjectA McGraphObj object.

First graphic object to be moved or just moved. This will be the first selected McGraphObj with the mcgsAllowmove Style bit set. Call Object.GetPosition when AboutToMove is 1 and then again when it is 0 to see how far the objects were moved.

AboutToMoveA Long value.

If 1, the selected objects are about to be moved. If 0, the objects will have just been moved.

Remarks

This event is fired both before and after objects are moved via the the MoveSelectedObjects method. The AboutToMove argument signals whether the event is the one before or after the move. The event sink would normally use the first event (AboutToMove equals 1) to pick up the Position of the SelectedGraphObj and the second event to pick up its Position after the move.

Notes

If the MoveSelectedObjects Dragging argument is TRUE, then the MoveSelected event is fired with AboutToMove set to 1 on only the first call, and no event is then fired until a call is made with Dragging FALSE. The idea here is to avoid a series of events during dragging.