Important: The information in this document is obsolete and should not be used for new development.
MyDrawPicker
Color picker-defined subroutine that handles akDrawPickerrequest.If you create a color picker, it must respond to the
kDrawPickerrequest code. The Color Picker Manager sends this code in response to an update event. A color picker responds to thekDrawPickerrequest code by calling a color picker-defined subroutine (for example,MyDrawPicker) to handle the request.
pascal ComponentResult MyDrawPicker (PickerStorageHndl storage);
storage- A handle to your color picker's global data.
DISCUSSION
YourMyDrawPickerfunction should redraw your color picker. The Color Picker Manager calls the Event Manager functionBeginUpdatebefore sending thekDrawPickerrequest code, and the Color Picker Manager calls the Event Manager functionEndUpdateafter sending thekDrawPickerrequest code.Your function should return
noErrif successful, or an appropriate result code otherwise.SEE ALSO
Listing 2-20 (page 2-37) in Advanced Color Imaging on the Mac OS illustrates how to implement this function.