Important: The information in this document is obsolete and should not be used for new development.
ExtractPickerHelpItem
Extracts and changes the messages and other characteristics of the help balloons for a color picker.The Color Picker Manager provides help balloons for color picker dialog boxes. For all types of color picker dialog boxes, applications generally don't need to determine or change the default help balloons. However, if your application absolutely requires greater control over Balloon Help, it can use the
ExtractPickerHelpItem
function to obtain and change the messages and other characteristics of the default help balloons.
pascal OSErr ExtractPickerHelpItem ( picker thePicker, short itemNo, short whichState, HelpItemInfo *helpInfo);
thePicker
- The color picker whose help balloons you wish to obtain.
itemNo
- A number corresponding to the position of an item in the item list resource of the color picker's dialog box.
whichState
- For menu items and items in alert or dialog boxes, the state of the item specified in the
itemNo
parameter. The following constants are used to represent the possible states:kHMEnabledItem
,kHMDisabledItem
,kHMCheckedItem
, andkHMOtherItem
. See the chapter "Help Manager" in Inside Macintosh: More Macintosh Toolbox for descriptions of these states for various types of dialog items.helpInfo
- A pointer to a
HelpItemInfo
structure (page 2-32). In thehelpMessage
field of this structure, the Color Picker Manager passes the default help message in anHMHelpMessage
structure. The Color Picker Manager passes the default characteristics of the help balloon--that is, the value of theoptions
element of its help resource, its tip location, its alternate rectangle, its tip function, and its variation code--in the rest of the fields of theHelpItemInfo
structure.DISCUSSION
For the color picker specified in the parameterthePicker
, theExtractPickerHelpItem
function reports the messages and other characteristics for its help balloons. If your application needs to override the help message or another help balloon characteristic for the item specified in theitemNo
parameter, your application should specify the desired help message and characteristics in theHelpItemInfo
structure pointed to in thehelpInfo
parameter, and then use the Help Manager functionHMShowBalloon
to display the altered help balloon.SEE ALSO
Listing 2-14 (page 2-27) in Advanced Color Imaging on the Mac OS illustrates how to use this function. See the chapter "Help Manager" in Inside Macintosh: More Macintosh Toolbox for more information about help balloons.