Carbon


PickColor

Header: ColorPicker.h Carbon status: Supported

Requests the user to choose a color from the standard color picker dialog box.

OSErr PickColor (
    ColorPickerInfo *theColorInfo
);
Parameter descriptions
theColorInfo

A pointer to the ColorPickerInfo structure, to specify information to and obtain information from the Color Picker Manager.

function result

A result code.

DISCUSSION

The PickColor function displays the standard modal dialog box for color pickers. When the user clicks the OK button, PickColor removes the dialog box and returns true in the newColorChosen field and the user’s selected color in the theColor field of theColorInfo. When the user clicks the Cancel button, PickColor removes the dialog box and returns false in the newColorChosen field.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when ColorPicker 2.0 or later is present.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)