kCADEventPhaseBefore
Changing a value in the Measure pane, triggers a kCADEventPhaseBefore phase of the
kCADEventIDChangeOfMeasure event, except that
kCADEventIDObjTranslate event
kCADEventIDObjRotate event.
The action can be intercepted or applied to a modified scope of objects.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDChangeOfMeasure
|
| in | theEventPhase | longint | kCADEventPhaseBefore
|
| in | theEventData1 | longint | Target object scope of selected objects, not included objects with a relevant lock.
You can add objects to or remove objects from this scope
This will change the selection of objects on which the action will take place
|
| in | theEventData2 | longint | Type of measure, a measure type constant
|
| in | theEventData3 | longint | Horizontal anchor pane setting, a stretch anchor constant
|
| in | theEventData4 | longint |
Vertical anchor pane setting, a stretch anchor constant
|
| in | theMouseX | real | 0.0
|
| in | theMouseY | real | 0.0
|
| in | theEventValue1 | real | Entered measure value
|
| 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)
|
| 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 changes have been applied.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theEventID | longint | kCADEventIDChangeOfMeasure
|
| in | theEventPhase | longint | kCADEventPhaseAfter
|
| in | theEventData1 | longint | Scope of objects, the measure value has been applied to
|
| in | theEventData2 | longint | Type of measure, a measure type constant
|
| in | theEventData3 | longint | Horizontal anchor pane setting, a stretch anchor constant
|
| in | theEventData4 | longint | Vertical anchor pane setting, a stretch anchor constant
|
| in | theMouseX | real | 0.0
|
| in | theMouseY | real | 0.0
|
| in | theEventValue1 | real | Entered measure value
|
| in | theEventValue2 | real | 0.0
|
| in | theKeyAsciiValue | integer | 0
|
| in | theModifiers | longint | 0
|
| in | theTickCount | longint | 0
|
| in/out | theEventResult | longint | Don’t change.
|