Table A-1 Control Events versus Control defproc messages Control event constant | Control defproc message(s) |
---|
kEventControlInitialize
| initCntl kControlMsgTestNewMsgSupport kControlMsgGetFeatures (in that order)
|
kEventControlDispose
| dispCntl
|
kEventControlGetOptimalBounds
| kControlMsgCalcBestRect
|
kEventControlDefInitialize
| Same as for kEventControlInitialize . |
kEventControlDefDispose
| Same as for kEventControlDispose |
kEventControlHit
| No equivalent message |
kEventControlSimulateHit
| No equivalent message |
kEventControlHitTest
| testCntl
|
kEventControlDraw
| drawCntl
|
kEventControlApplyBackground
| kControlMsgSetUpBackground
|
kEventControlApplyTextColor
| kControlMsgApplyTextColor
|
kEventControlSetFocusPart
| kControlMsgFocus
|
kEventControlGetFocusPart
| No equivalent message. |
kEventControlActivate
| kControlMsgActivate (with param = 1)
|
kEventControlDeactivate
| kControlMsgActivate (with param = 0)
|
kEventControlSetCursor
| kControlMsgSetCursor
|
kEventControlContextualMenuClick
| kControlMsgContextualMenuClick
|
kEventControlTrack
| kControlMsgHandleTracking
|
kEventControlGetScrollToHereStartPoint
| No equivalent message. |
kEventControlGetIndicatorDragConstraint
| thumbCntl
|
kEventControlIndicatorMoved
| kControlMsgDrawGhost (for nonlive tracking) or kControlMsgCalcValueFromPos (for live tracking).
|
kEventControlGhostingFinished
| posCntl
|
kEventControlGetActionProcPart
| No equivalent message. |
kEventControlGetPartRegion
| kControlMsgGetRegion for controls that support GetRegion , calcCntlRgn or calcThumbRgn otherwise.
|
kEventControlGetPartBounds
| No equivalent message. |
kEventControlSetData
| kControlMsgSetData
|
kEventControlGetData
| kControlMsgGetData
|
kEventControlValueFieldChanged
| drawCntl with param = kControlIndicatorPart
|
kEventControlAddedSubControl
| kControlMsgSubControlAdded
|
kEventControlRemovingSubControl
| kControlMsgSubControlRemoved
|
kEventControlArbitraryMessage
| Anything sent using SendControlMessage |
kEventWindowGetClickActivation (of event class kEventClassWindow )
| kControlMsgGetClickActivation
|