kCADEventPhaseBefore
Choosing a new mode on the Mode palette or pressing the space bar,
triggers a kCADEventPhaseBefore phase of the kCADEventIDModeChange event.
The action can be intercepted.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDModeChange
|
| in | theEventPhase | longint | kCADEventPhaseBefore
|
| in | theEventData1 | longint | Old mode, a mode constant
|
| in | theEventData2 | longint | New mode, a mode constant
|
| 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 | ASCII character value of pressed key, or 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 action has taken place.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDModeChange
|
| in | theEventPhase | longint | kCADEventPhaseAfter
|
| in | theEventData1 | longint | Old mode, a mode constant
|
| in | theEventData2 | longint | New mode, a mode constant
|
| 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 | ASCII character value of pressed key, or 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.
|