Control events are generated from onscreen user interface objects-buttons, checkboxes, scroll bars, and so forth.
Table C-2. Required Parameter Names and Types for Control Event Kinds
Event kind | Parameter name | Parameter type |
---|---|---|
kEventControlInitialize
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamInitCollection
|
typeCollection
| |
kEventControlDispose
|
kEventParamDirectObject
|
typeControlRef
|
|
kEventParamDirectObject
|
typeControlRef
|
|
typeQDRectangle
| |
kEventControlHit
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
| |
kEventParamKeyModifiers
|
typeUInt32
| |
kEventControlSimulateHit
|
kEventParamDirectObject
|
typeControlRef
|
kEventControlHitTest
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamMouseLocation
|
typeQDPoint
| |
kEventParamControlPart
|
typeControlPartCode
| |
kEventControlDraw
|
kEventParamDirectObject
|
typeControlRef
|
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlSubControl
|
typeControlRef
| |
kEventParamControlDrawDepth
|
typeShortInteger
| |
kEventParamControlDrawInColor
|
typeBoolean
| |
kEventControlSetFocusPart
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
typeControlPartCode
| |
kEventControlGetFocusPart
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
typeControlPartCode
| |
kEventControlActivate
|
kEventParamDirectObject
|
typeControlRef
|
kEventControlDeactivate
|
kEventParamDirectObject
|
typeControlRef
|
kEventControlSetCursor
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamMouseLocation
|
typeQDPoint
| |
kEventParamKeyModifiers
|
typeUInt32
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamMouseLocation
|
typeQDPoint
| |
kEventControlTrack
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamMouseLocation
|
typeQDPoint
| |
kEventParamKeyModifiers
|
typeUInt32
| |
kEventParamControlAction
|
typeControlActionUPP
| |
kEventParamControlPart
|
typeControlPartCode
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamMouseLocation
|
typeQDPoint
| |
kEventParamKeyModifiers
|
typeUInt32
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamMouseLocation
|
typeQDPoint
| |
kEventParamKeyModifiers
|
typeUInt32
| |
|
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlIndicatorRegion
|
typeQDRgnHandle
| |
kEventParamControlIsGhosting
|
typeBoolean
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlIndicatorOffset
|
typeQDPoint
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamKeyModifiers
|
typeUInt32
| |
kEventParamControlPart
|
typeControlPartCode
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
typeControlPartCode
| |
kEventParamControlRegion
|
typeQDRgnHandle
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
typeControlPartCode
| |
kEventParamControlBounds
|
typeQDRectangle
| |
kEventControlSetData
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
typeControlPartCode
| |
kEventParamControlDataTag
|
typeEnumeration
| |
kEventParamControlDataBuffer
|
typePtr
| |
kEventParamControlDataBufferSize
|
typeLongInteger
| |
kEventControlGetData
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlPart
|
typeControlPartCode
| |
kEventParamControlDataTag
|
typeEnumeration
| |
kEventParamControlDataBuffer
|
typePtr
| |
kEventParamControlDataBufferSize
|
typeLongInteger
| |
|
kEventParamDirectObject
|
typeControlRef
|
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlSubControl
|
typeControlRef
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlSubControl
|
typeControlRef
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamAttributes
|
typeUInt32
| |
kEventParamOriginalBounds
|
typeQDRectangle
| |
kEventParamPreviousBounds
|
typeQDRectangle
| |
kEventParamCurrentBounds
|
typeQDRectangle
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamAttributes
|
typeUInt32
| |
|
typeWindowRef
| |
|
typeWindowRef
| |
|
kEventParamDirectObject
|
typeControlRef
|
kEventParamControlMessage
|
typeShortInteger
| |
kEventParamControlParam
|
typeLongInteger
| |
kEventParamControlResult
|
typeLongInteger
|