![]() |
Control Part Code Constants |
Header: ControlDefinitions.h |
enum { kControlLabelPart = 1, kControlMenuPart = 2, kControlTrianglePart = 4, kControlEditTextPart = 5, kControlPicturePart = 6, kControlIconPart = 7, kControlClockPart = 8, kControlListBoxPart = 24, kControlListBoxDoubleClickPart = 25, kControlImageWellPart = 26, kControlRadioGroupPart = 27, kControlButtonPart = 10, kControlCheckBoxPart = 11, kControlRadioButtonPart = 11, kControlUpButtonPart = 20, kControlDownButtonPart = 21, kControlPageUpPart = 22, kControlPageDownPart = 23, kControlClockHourDayPart = 9, kControlClockMinuteMonthPart = 10, kControlClockSecondYearPart = 11, kControlClockAMPMPart = 12, kControlDataBrowserPart = 24, kControlDataBrowserDraggedPart = 25 };
Identifies the label of a pop-up menu control.
Identifies the menu of a pop-up menu control. For bevel buttons with a menu attached, this part code specifies a menu item of the bevel button.
Identifies a disclosure triangle control.
Identifies an editable text control. Available with Appearance Manager 1.0 and later.
Identifies a picture control. Available with Appearance Manager 1.0 and later.
Identifies an icon control. Available with Appearance Manager 1.0 and later.
Identifies a clock control. Available with Appearance Manager 1.0 and later.
Identifies a list box control. Available with Appearance Manager 1.0 and later.
Identifies a double-click in a list box control. Available with Appearance Manager 1.0 and later.
Identifies an image well control. Available with Appearance Manager 1.0 and later.
Identifies a radio group control. Available with Appearance Manager 1.0.2 and later.
Identifies either a push button or bevel button control. For bevel buttons with a menu attached, this part code specifies the button but not the attached menu.
Identifies a checkbox control.
Identifies a radio button control.
Identifies the up button of a scroll bar control (the arrow at the top or the left).
Identifies the down button of a scroll bar control (the arrow at the right or the bottom).
Identifies the page-up part of a scroll bar control.
Identifies the page-down part of a scroll bar control.
Identifies the part of a clock control that contains the hour or the day. The Mac OS 8.5 Control Manager defines this new control part code constant.
Identifies the part of a clock control that contains the minute or the month. The Mac OS 8.5 Control Manager defines this new control part code constant.
Identifies the part of a clock control that contains the second or the year. The Mac OS 8.5 Control Manager defines this new control part code constant.
Identifies the part of a clock control that contains the AM/PM information. The Mac OS 8.5 Control Manager defines this new control part code constant.
Constants of type ControlPartCode identify specific parts of controls.
Part codes are meaningful only within the scope of a single control definition function. For example, the standard tab control uses part codes 1...N, where N is the number of tabs, even though those numbers do collide with part codes defined for use with other control definition functions. Therefore, when you wish to specify part codes for the tab control for use with the function SetControlData, for example, you should use a part code corresponding to a 1-based index of the tab whose data you wish to set. In other words, the first tab is part code 1, the second tab is part code 2, and so on.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)