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 /
Color Picker Manager Functions / Creating a Custom Color Picker Dialog Box


CreateColorDialog

Creates a system-owned color picker dialog box.

pascal OSErr CreateColorDialog (
SystemDialogInfo *info, 
picker *thePicker);
info
A pointer to a SystemDialogInfo structure (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
The CreateColorDialog function creates a system-owned color picker dialog box of the type requested in the info parameter and places inside it the color picker returned in the parameter thePicker. The dialog box is invisible upon creation; use the SetPickerVisibility function (page 2-40) to make it visible. The Color Picker Manager may change some of the flags in the SystemDialogInfo structure (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 the CreateColorDialog function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996