Next: , Previous: kCADEventIDObjTranslate, Up: CAD events


7.21 kCADEventIDScroll

kCADEventPhaseBefore

A kCADEventPhaseBefore phase of the kCADEventIDScroll event is triggered when the users clicks in any part of a scroll bar. The action can be intercepted.

Also see kCADEventIDDragScroll

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDScroll
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Type of scroll, kCADEventDataScrollH or kCADEventDataScrollV
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
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 scrolling has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDScroll
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Type of scroll, kCADEventDataScrollH or kCADEventDataScrollV
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)
in/out theEventResult longint Don’t change.