Control Manager Reference
PDF
Overview
Functions by Task
Creating and Removing Controls
Embedding Controls
Displaying Controls
Handling Events in Controls
Manipulating Controls
Handling Keyboard Focus
Accessing Control Settings and Data
Manipulating Menus in Controls
Manipulating Bevel Buttons
Managing Control UPPs
Obsolete Functions
Functions
ActivateControl
AdvanceKeyboardFocus
AutoEmbedControl
ChangeControlPropertyAttributes
ClearKeyboardFocus
CopyControlTitleAsCFString
CountSubControls
CreateBevelButtonControl
CreateChasingArrowsControl
CreateCheckBoxControl
CreateCheckGroupBoxControl
CreateClockControl
CreateDisclosureButtonControl
CreateDisclosureTriangleControl
CreateEditUnicodeTextControl
CreateGroupBoxControl
CreateIconControl
CreateImageWellControl
CreateListBoxControl
CreateLittleArrowsControl
CreatePictureControl
CreatePlacardControl
CreatePopupArrowControl
CreatePopupButtonControl
CreatePopupGroupBoxControl
CreateProgressBarControl
CreatePushButtonControl
CreatePushButtonWithIconControl
CreateRadioButtonControl
CreateRadioGroupControl
CreateRelevanceBarControl
CreateRootControl
CreateRoundButtonControl
CreateScrollBarControl
CreateScrollingTextBoxControl
CreateSeparatorControl
CreateSliderControl
CreateStaticTextControl
CreateTabsControl
CreateUserPaneControl
CreateWindowHeaderControl
DeactivateControl
DisableControl
DisposeControl
DisposeControlActionUPP
DisposeControlCNTLToCollectionUPP
DisposeControlColorUPP
DisposeControlEditTextValidationUPP
DisposeControlKeyFilterUPP
DisposeControlUserPaneActivateUPP
DisposeControlUserPaneBackgroundUPP
DisposeControlUserPaneDrawUPP
DisposeControlUserPaneFocusUPP
DisposeControlUserPaneHitTestUPP
DisposeControlUserPaneIdleUPP
DisposeControlUserPaneKeyDownUPP
DisposeControlUserPaneTrackingUPP
DisposeEditUnicodePostUpdateUPP
DragControl
Draw1Control
DrawControlInCurrentPort
DrawControls
DumpControlHierarchy
EmbedControl
EnableControl
FindControl
FindControlUnderMouse
GetBestControlRect
GetBevelButtonContentInfo
GetBevelButtonMenuHandle
GetBevelButtonMenuValue
GetControl32BitMaximum
GetControl32BitMinimum
GetControl32BitValue
GetControlAction
GetControlBounds
GetControlByID
GetControlClickActivation
GetControlCommandID
GetControlData
GetControlDataHandle
GetControlDataSize
GetControlFeatures
GetControlHilite
GetControlID
GetControlKind
GetControlMaximum
GetControlMinimum
GetControlOwner
GetControlPopupMenuHandle
GetControlPopupMenuID
GetControlProperty
GetControlPropertyAttributes
GetControlPropertySize
GetControlReference
GetControlRegion
GetControlValue
GetControlVariant
GetControlViewSize
GetImageWellContentInfo
GetIndexedSubControl
GetKeyboardFocus
GetNewControl
GetRootControl
GetSuperControl
GetTabContentRect
HandleControlClick
HandleControlContextualMenuClick
HandleControlDragReceive
HandleControlDragTracking
HandleControlSetCursor
HideControl
HiliteControl
InvokeControlActionUPP
InvokeControlCNTLToCollectionUPP
InvokeControlColorUPP
InvokeControlEditTextValidationUPP
InvokeControlKeyFilterUPP
InvokeControlUserPaneActivateUPP
InvokeControlUserPaneBackgroundUPP
InvokeControlUserPaneDrawUPP
InvokeControlUserPaneFocusUPP
InvokeControlUserPaneHitTestUPP
InvokeControlUserPaneIdleUPP
InvokeControlUserPaneKeyDownUPP
InvokeControlUserPaneTrackingUPP
InvokeEditUnicodePostUpdateUPP
IsAutomaticControlDragTrackingEnabledForWindow
IsControlActive
IsControlDragTrackingEnabled
IsControlEnabled
IsControlHilited
IsControlVisible
IsValidControlHandle
KillControls
MoveControl
NewControlActionUPP
NewControlCNTLToCollectionUPP
NewControlColorUPP
NewControlEditTextValidationUPP
NewControlKeyFilterUPP
NewControlUserPaneActivateUPP
NewControlUserPaneBackgroundUPP
NewControlUserPaneDrawUPP
NewControlUserPaneFocusUPP
NewControlUserPaneHitTestUPP
NewControlUserPaneIdleUPP
NewControlUserPaneKeyDownUPP
NewControlUserPaneTrackingUPP
NewEditUnicodePostUpdateUPP
RegisterControlDefinition
RemoveControlProperty
ReverseKeyboardFocus
SendControlMessage
SetAutomaticControlDragTrackingEnabledForWindow
SetBevelButtonContentInfo
SetBevelButtonGraphicAlignment
SetBevelButtonMenuValue
SetBevelButtonTextAlignment
SetBevelButtonTextPlacement
SetBevelButtonTransform
SetControl32BitMaximum
SetControl32BitMinimum
SetControl32BitValue
SetControlAction
SetControlBounds
SetControlColorProc
SetControlCommandID
SetControlData
SetControlDataHandle
SetControlDragTrackingEnabled
SetControlFontStyle
SetControlID
SetControlMaximum
SetControlMinimum
SetControlPopupMenuHandle
SetControlPopupMenuID
SetControlProperty
SetControlReference
SetControlSupervisor
SetControlTitleWithCFString
SetControlValue
SetControlViewSize
SetControlVisibility
SetDisclosureTriangleLastValue
SetImageWellContentInfo
SetImageWellTransform
SetKeyboardFocus
SetTabEnabled
SetUpControlBackground
SetUpControlTextColor
ShowControl
SizeControl
TestControl
TrackControl
UpdateControls
Callbacks by Task
Defining Your Own Action Function
Defining Your Own Control Definition Function
Defining Your Own Key Filter Function
Defining Your Own Text Validation Function
Defining Your Own User Pane Functions
Miscellaneous
Callbacks
ControlActionProcPtr
ControlCNTLToCollectionProcPtr
ControlColorProcPtr
ControlDefProcPtr
ControlEditTextValidationProcPtr
ControlKeyFilterProcPtr
ControlUserPaneActivateProcPtr
ControlUserPaneBackgroundProcPtr
ControlUserPaneDrawProcPtr
ControlUserPaneFocusProcPtr
ControlUserPaneHitTestProcPtr
ControlUserPaneIdleProcPtr
ControlUserPaneKeyDownProcPtr
ControlUserPaneTrackingProcPtr
EditUnicodePostUpdateProcPtr
Data Types
AuxCtlHandle
AuxCtlPtr
AuxCtlRec
ClickActivationResult
ControlApplyTextColorRec
ControlBackgroundRec
ControlBevelButtonBehavior
ControlBevelButtonMenuBehavior
ControlButtonContentInfo
ControlCalcSizeRec
ControlCapabilities
ControlClickActivationRec
ControlContentType
ControlContextualMenuClickRec
ControlDataAccessRec
ControlDefProcMessage
ControlDefSpec
ControlDefType
ControlEditTextSelectionRec
ControlFocusPart
ControlFontStyleRec
ControlGetRegionRec
ControlHandle
ControlID
ControlImageContentInfo
ControlKeyDownRec
ControlKeyFilterResult
ControlKeyScriptBehavior
ControlKind
ControlNotification
ControlNotificationUPP
ControlPartCode
ControlPopupArrowOrientation
ControlPopupArrowSize
ControlPtr
ControlRecord
ControlRef
ControlSetCursorRec
ControlSize
ControlTabEntry
ControlTabInfoRec
ControlTabInfoRecV1
ControlTemplate
ControlTrackingRec
ControlVariant
DataBrowserCallbacks
DataBrowserCustomCallbacks
DataBrowserDragFlags
DataBrowserListViewColumnDesc
DataBrowserListViewHeaderDesc
DataBrowserPropertyDesc
DataBrowserPropertyFlags
DataBrowserPropertyPart
DataBrowserPropertyType
DataBrowserTableViewColumnDesc
DataBrowserTableViewColumnIndex
DataBrowserTableViewRowIndex
DataBrowserTableViewColumnID
DataBrowserViewStyle
DBItemProcDataType
DBRevealItemDataType
DBSetSelectionDataType
IndicatorDragConstraint
IndicatorDragConstraintHandle
PopupPrivateData
PopupPrivateDataHandle
PopupPrivateDataPtr
kHIUserPaneClassID
Constants
Appearance–compliant Push Button, Radio Button, and Checkbox Control Definition IDs
Asynchronous Arrows Control Definition ID
Bevel Button Behavior Constants
Bevel Button Control Data Tag Constants
Bevel Button Control Definition IDs
Bevel Button Graphic Alignment Constants
Bevel Button Menu Constant
Bevel Button Menu Control Data Tag Constants
Bevel Button Text Alignment Constants
Bevel Button Text Placement Constants
Checkbox and Radio Button AutoToggle Control Definition IDs
Checkbox Value Constants
Clock Control Data Tag Constants
Clock Control Definition IDs
Clock Value Flag Constants
Control Definition Message Constants
Control Features Constants
Control Focus Part Code Constants
Control Font Style and Key Filter Data Tag Constants
Control Font Style Flag Constants
Control Key Script Behavior Constants
Control Part Code Constants
Control State Part Code Constants
Control Variant Constants
Control Bevel Button Menu Placement Constants
Control Bevel Thickness Constants
Control Clock Type Constants
Control Disclosure Triangle Orientation Constants
Control Notify Constants
Control Push Button Icon Alignment Constants
Control Round Button Size Constants
Control Slider Orientation Constants
Control Tab Direction Constants
Control Tab Size Constants
Drag Control Constants
Drawing Constants
Editable Text Control Data Tag Constants
Editable Text Control Definition ID Constants
Data Browser Error Constants
Group Box Control Data Tag Constants
Group Box Control Definition ID Constants
Icon Control Data Tag Constants
Icon Control Definition ID Constants
Image Well Control Data Tag Constants
Image Well Control Definition ID
inLabel
inThumb
kControlBevelButtonOwnedMenuRefTag
Bevel Button Size Constants
Control Can Auto Invalidate Constant
Control Chasing Arrows Animating Tag Constant
Control Collection Tag Constants
Control Collection Tag Subcontrols Constant
Control Content Type Constants
Control Data Browser Tag Constants
Control Def Constants
Control Def Type Constants
Disclosure Triangle Constants
Unicode Control Data Tags
Control Edit Unicode Text Post Update Proc Tag Constant
Control Edit Unicode Text Proc Constants
Control Entire Control Constant
Control Kind Bevel Button Constant
Control Kind Chasing Arrows Constant
Control Kind Clock Constant
Control Kind Data Browser Constant
Control Kind Disclosure Button Constant
Control Kind Disclosure Triangle Constant
Control Kind Edit Text Constant
Control Kind Edit Unicode Text Constant
Control Kind Group Box Constants
Control Kind Icon Constant
Control Kind Image Well Constant
Control Kind List Box Constant
kControlKindLittleArrows
Control Kind Picture Constant
Control Kind Placard Constant
Control Kind Pop-up Arrow Constant
Control Kind Pop-up Button Constant
Control Kind Progress Bar Constants
Control Kind Push and Radio Button Constants
Control Kind Radio Group Constant
Control Kind Round Button Constant
Control Kind Scroll Bar Constant
Control Kind Scrolling Text Box Constant
Control Kind Separator Constant
Control Kind Signature Apple Constant
Control Kind Slider Constant
Control Kind Static Text Constant
Control Kind Tabs Constant
Control Kind User Pane Constant
Control Kind Window Header Constant
Control Picture Handle Tag Constant
Control Pop-up Arrow Orientation Constants
Control Pop-up Arrow Size Constants
Control Pop-up Button Check Current Tag Constant
Control Property Persistent Constant
Control Round Button Content and Size Tag Constants
Control Scrollbar Shows Arrows Tag Constant
Control Size Constants
Control Supports New Messages Constant
Control Tab Image Content Tag Constant
Control Tab Info Version Constants
Control Tab Type Constants
Control Use Theme Font ID Mask Constant
Click Activation Constants
Selection Constants
Drag Tracking Enter Control Constants
Key Filter Result Codes
In Control Part Constants
Order Constants
List Box Control Data Tag Constants
List Box Control Definition ID Constants
Little Arrows Control Definition ID Constant
Little Arrows Control Tag Constant
Mac OS 8.5 Bevel Button Control Data Tag Constant
Mac OS 8.5 Control Font Style Flag Constant
Mac OS 8.5 Editable Text Control Definition ID Constant
Mac OS 8.5 Group Box Control Data Tag Constant
Mac OS 8.5 Icon Control Data Tag Constants
Mac OS 8.5 Pop-up Button Control Data Tag Constants
Control Meta Part Code Constants
Meta Font Constants
Constraint Constants
Part Identifier Constants
Picture Control Definition ID Constants
Placard Control Definition ID Constant
Pop-up Menu Title Constants
Pop-up Menu Title Justification Constants
Pop-up Arrow Control Definition ID Constants
Pop-up Button Control Data Tag Constants
Pop-up Button Control Definition ID Constants
Pop-up Width Constants
Pre–Appearance Control Definition ID Constants
Progress Bar Control Data Tag Constants
Progress Bar Control Definition ID Constants
Push Button Control Data Tag Constants
Radio Button Value Constants
Radio Group Control Definition ID Constant
Scroll Bar Control Definition ID Constants
Scrolling Text Box Control Data Tag Constants
Scrolling Text Box Control Definition ID Constants
Separator Line Control Definition ID Constant
Slider Control Definition ID Constants
Static Text Control Data Tag Constants
Static Text Control Definition ID Constant
Text Proc Constants
Tab Control Data Tag Constants
Tab Control Definition IDs
Tab Control Info Tag Constant
Triangle Control Data Tag Constant
Triangle Control Definition ID Constants
User Item and User Pane Control Data Tag Constants
User Pane Control Definition ID Constant
useWFont Constants
Window Control Definition IDs
Window Control Data List Header Tag Constant
Result Codes
Appendix A: Deprecated Control Manager Functions
Deprecated in Mac OS X v10.4
CreateEditTextControl
IdleControls
Deprecated in Mac OS X v10.5
CreateCustomControl
DisposeControlDefUPP
GetControlTitle
HandleControlKey
InvokeControlDefUPP
NewControl
NewControlDefUPP
SetControlTitle
Revision History
Index