Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Constants and Data Types


Picker Icon Structure

A color picker responds to the kGetIconData request code by returning its script code and the resource ID of its icon family. The Color Picker Manager needs this information to display the color picker in the More Choices list. The color picker returns this information in a picker icon data (PickerIconData) structure.

typedef struct PickerIconData {
   short    scriptCode;    /* script code */
   short    iconSuiteID;   /* resource ID for icon family */
   ResType  helpResType;   /* resource type for help balloon */
   short    helpResID;     /* resource ID for help balloon */
} PickerIconData;
Field Description
scriptCode
The script code for the text used for the color picker's name. See Inside Macintosh: Text for more information about script codes.
iconSuiteID
The resource ID for the color picker's icon family. See the chapter "Finder Interface" in Inside Macintosh: Macintosh Toolbox Essentials for information about icon families.
helpResType
The resource type for the help balloon used for the color picker's icon. See the chapter "Help Manager" in Inside Macintosh: More Macintosh Toolbox for information about help balloons.
helpResID
The resource ID for the help balloon used for the color picker's icon.
For more information about how a color picker should respond to the kGetIconData request code, see MyGetIconData (page 2-67).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996