Control Events

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 kindParameter nameParameter type
kEventControlInitialize kEventParamDirectObject typeControlRef
  kEventParamInitCollection typeCollection
kEventControlDispose kEventParamDirectObject typeControlRef

kEventControlGetOptimalBounds

kEventParamDirectObject typeControlRef
 

kEventParamControlOptimalBounds

typeQDRectangle
kEventControlHit kEventParamDirectObject typeControlRef
  kEventParamControlPart

typeControlPartCode

  kEventParamKeyModifiers typeUInt32
kEventControlSimulateHit kEventParamDirectObject typeControlRef
kEventControlHitTest kEventParamDirectObject typeControlRef
  kEventParamMouseLocation typeQDPoint
  kEventParamControlPart typeControlPartCode
kEventControlDraw kEventParamDirectObject typeControlRef

kEventControlApplyTextColor

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

kEventControlContextualMenuClick

kEventParamDirectObject typeControlRef
  kEventParamMouseLocation typeQDPoint
kEventControlTrack kEventParamDirectObject typeControlRef
  kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
  kEventParamControlAction typeControlActionUPP
  kEventParamControlPart typeControlPartCode

kEventControlGetScrollToHereStartPoint

kEventParamDirectObject typeControlRef
  kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32

kEventControlGetIndicatorDragConstraint

kEventParamDirectObject typeControlRef
  kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
 

kEventParamControlIndicatorDragConstraint

typeIndicatorDragConstraint

kEventControlIndicatorMoved

kEventParamDirectObject typeControlRef
  kEventParamControlIndicatorRegion typeQDRgnHandle
  kEventParamControlIsGhosting typeBoolean

kEventControlGhostingFinished

kEventParamDirectObject typeControlRef
  kEventParamControlIndicatorOffset typeQDPoint

kEventControlGetActionProcPart

kEventParamDirectObject typeControlRef
  kEventParamKeyModifiers typeUInt32
  kEventParamControlPart typeControlPartCode

kEventControlGetPartRegion

kEventParamDirectObject typeControlRef
  kEventParamControlPart typeControlPartCode
  kEventParamControlRegion typeQDRgnHandle

kEventControlGetPartBounds

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

kEventControlValueFieldChanged

kEventParamDirectObject typeControlRef

kEventControlAddedSubControl

kEventParamDirectObject typeControlRef
  kEventParamControlSubControl typeControlRef

kEventControlRemovingSubControl

kEventParamDirectObject typeControlRef
  kEventParamControlSubControl typeControlRef

kEventControlBoundsChanged

kEventParamDirectObject typeControlRef
  kEventParamAttributes typeUInt32
  kEventParamOriginalBounds typeQDRectangle
  kEventParamPreviousBounds typeQDRectangle
  kEventParamCurrentBounds typeQDRectangle

kEventControlOwningWindowChanged

kEventParamDirectObject typeControlRef
  kEventParamAttributes typeUInt32
 

kEventParamControlOriginalOwningWindow

typeWindowRef
 

kEventParamControlCurrentOwningWindow

typeWindowRef

kEventControlArbitraryMessage

kEventParamDirectObject typeControlRef
  kEventParamControlMessage typeShortInteger
  kEventParamControlParam typeLongInteger
  kEventParamControlResult typeLongInteger
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.5.201