O'Reilly logo

Learning Carbon by Apple Computer Inc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required