Important: The information in this document is obsolete and should not be used for new development.
Using the Color Picker Manager
You can use the Color Picker Manager to allow the user to select a color. The functions defined by the Color Picker Manager are divided into one high-level function and several low-level functions:
Before calling the Color Picker Manager functions, your application should test for the availability of the Color Picker Manager by calling the
- The high-level function,
PickColor
, provides access to almost all of the Color Picker Manager's feature set. For compatibility with the older Color Picker Package, its old high-level function,GetColor
, is still supported by the Color Picker Manager. The use ofPickColor
is described in "Using the Standard Dialog Box for Color Pickers" (page 2-8).- The low-level functions allow maximum flexibility for your application. The
PickColor
function presents a modal dialog box, but the low-level functions allow your application to use moveable modal and modeless dialog boxes. These low-level functions are described in "Using Customized Dialog Boxes for Color Pickers" (page 2-12).
Gestalt
function with thegestaltColorPickerVersion
selector.
enum { gestaltColorPickerVersion = 'cpkr' /* returns version of the Color Picker Manager */ };If theGestalt
function returns a value of 00000200, version 2.0 of the Color Picker Manager is available. If theGestalt
function returns a value of 00000100, version 1.0 (that is, the original Color Picker Package) is available.Besides using the Color Picker Manager to interact with color pickers already available on the user's system, you can use the Component Manager to create your own color picker, as described in "Writing Your Own Color Pickers" (page 2-30). Other applications can then interact with your color picker by using the Color Picker Manager.
Subtopics
- Using the Standard Dialog Box for Color Pickers
- Using Customized Dialog Boxes for Color Pickers
- Controlling the Help Balloons for a Color Picker's Dialog Box