kCADEventPhaseBefore
Choosing Paste in the Edit menu or pressing command-v,
triggers a kCADEventPhaseBefore phase of the kCADEventIDEditPaste event.
The action can be intercepted.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDEditPaste
|
| in | theEventPhase | longint | kCADEventPhaseBefore
|
| in | theEventData1 | longint | Clipboard offscreen Area ID
(most methods can operate on a clipboard area)
|
| in | theEventData2 | longint | Optional target Layer or Sublayer ID (if the option key was pressed)
|
| in | theEventData3 | longint | theCADRefID of the data on the clipboard (see CADSetRef)
|
| 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 | 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.
|
The objects on the clipboard are accompanied by attributes of their source area, such as:
CADSetRef values (useful in identifying the pasted data)
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 | kCADEventIDEditPaste
|
| in | theEventPhase | longint | kCADEventPhaseAfter
|
| in | theEventData1 | longint | Clipboard offscreen Area ID
(most methods can operate on a clipboard area)
|
| in | theEventData2 | longint | Optional target Layer or Sublayer ID (if the option key was pressed)
|
| in | theEventData3 | longint | theCADRefID of the data on the clipboard (see CADSetRef)
|
| 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 | 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.
|