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 ...

Get Learning Carbon now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.