kCADEventPhaseBefore
A kCADEventPhaseBefore phase of the kCADEventIDUndoRedo event is triggered when
the user chooses Undo or Redo in the Edit menu or presses command-z
(see Undo and redo).
The undo action can be a standard undo or an undo defined by the application
(see CADTriggerUndo). The action can be intercepted.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDUndoRedo
|
| in | theEventPhase | longint | kCADEventPhaseBefore
|
| in | theEventData1 | longint | The type of undo, a undo constant
|
| in | theEventData2 | longint | kCADTrue if a redo, kCADFalse if not
|
| in | theEventData3 | longint | Scope or Object ID (not a modifiable scope)
|
| in | theEventData4 | longint | theUndoByAppEventParam of CADTriggerUndo, or 0
|
| in | theMouseX | real | 0.0
|
| in | theMouseY | real | 0.0
|
| 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 undo or redo action has taken place.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDUndoRedo
|
| in | theEventPhase | longint | kCADEventPhaseAfter
|
| in | theEventData1 | longint | The type of undo, a undo constant
|
| in | theEventData2 | longint | kCADTrue if a redo, kCADFalse if not
|
| in | theEventData3 | longint | Scope or Object ID (not a modifiable scope)
|
| in | theEventData4 | longint | theUndoByAppEventParam of CADTriggerUndo, or 0
|
| in | theMouseX | real | 0.0
|
| in | theMouseY | real | 0.0
|
| 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 kCADEventResultTriggerUndoRedo to trigger an undo and redo.
Set to kCADEventResultTriggerUndoOnly to trigger an undo only.
Set to kCADEventResultTriggerNone to trigger nothing.
|