Important: The information in this document is obsolete and should not be used for new development.
CreateColorDialog
Creates a system-owned color picker dialog box.
pascal OSErr CreateColorDialog ( SystemDialogInfo *info, picker *thePicker);
info- A pointer to a
SystemDialogInfostructure (page 2-23).thePicker- A pointer to the last color picker chosen by the user. Your application often refers to the color picker returned here in subsequent Color Picker Manager functions.
DISCUSSION
TheCreateColorDialogfunction creates a system-owned color picker dialog box of the type requested in theinfoparameter and places inside it the color picker returned in the parameterthePicker. The dialog box is invisible upon creation; use theSetPickerVisibilityfunction (page 2-40) to make it visible. The Color Picker Manager may change some of the flags in theSystemDialogInfostructure (such as those regarding the type of dialog box for the color picker).SEE ALSO
Listing 2-4 (page 2-12) in Advanced Color Imaging on the Mac OS illustrates how to use theCreateColorDialogfunction.