![]() |
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 );
A pointer to the ColorPickerInfo structure, to specify information to and obtain information from the Color Picker Manager.
A result code.
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 users 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.
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)