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-Defined Functions / Setting Up a Color Picker


MyGetDialog

Color picker-defined subroutine that handles a kGetDialog request.

If you create a color picker, it must respond to the kGetDialog request code. The Color Picker Manager sends this code to obtain the custom dialog box for your color picker, in case your color picker uses a custom dialog box. A color picker responds to the kGetDialog request code by calling a color picker-defined subroutine (for example, MyGetDialog) to handle the request.

pascal DialogPtr MyGetDialog (PickerStorageHndl storage);
storage
A handle to your color picker's global data.
DISCUSSION
If your color picker uses its own dialog box, your MyGetDialog function should return a pointer to this dialog box as its function result. If your color picker does not use a color picker-owned dialog box, your MyGetDialog function should return nil.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996