Next: , Previous: kCADEventIDObjDoubleClick, Up: CAD events


7.17 kCADEventIDObjReshape

kCADEventPhaseBefore

Clicking on a grip handle to start reshaping or resizing an object, triggers a kCADEventPhaseBefore phase of the kCADEventIDObjReshape event. The action can be intercepted. No event is triggered if the reshape or resize action has a lock.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjReshape
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Object ID of the target object
in theEventData2 longint Grip handle type, kCADEventDataSolidGrip or kCADEventDataOpenGrip
in theEventData3 longint Grip handle number
in theEventData4 longint 0
in theMouseX real Mouse X-coordinate,
in theMouseY real Mouse Y-coordinate,
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the object has been reshaped or resized.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjReshape
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Object ID of the target object
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.