Previous: kCADEventIDWriteString, Up: CAD events


7.25 kCADEventIDZoom

kCADEventPhaseBefore

A kCADEventPhaseBefore phase of the kCADEventIDZoom event is triggered when the user clicks to start a zooming operation (see Zoom in mode, Zoom out mode, Zoom continuous mode and other modes that allow zooming with a modifier key). The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDZoom
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Type of zoom, kCADEventDataZoomIn, kCADEventDataZoomOut or kCADEventDataZoomContinuous
in theEventData2 longint Actual mode (including the effect of modifier keys), a mode constant
in theEventData3 longint Mode setting of the mode palette, a mode constant
in theEventData4 longint Zoom increment (or 0 for continuous zoom)
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 zooming has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDZoom
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Type of zoom, kCADEventDataZoomIn, kCADEventDataZoomOut or kCADEventDataZoomContinuous
in theEventData2 longint Actual mode (including the effect of modifier keys), a mode constant
in theEventData3 longint Mode setting of the mode palette, a mode constant
in theEventData4 longint Zoom increment (or 0 for continuous zoom)
in theMouseX real Mouse X-coordinate, or 0.0
in theMouseY real Mouse Y-coordinate, or 0.0
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)
in/out theEventResult longint Don’t change.