Important: The information in this document is obsolete and should not be used for new development.
MyDrawPicker
Color picker-defined subroutine that handles akDrawPicker
request.If you create a color picker, it must respond to the
kDrawPicker
request code. The Color Picker Manager sends this code in response to an update event. A color picker responds to thekDrawPicker
request 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
YourMyDrawPicker
function should redraw your color picker. The Color Picker Manager calls the Event Manager functionBeginUpdate
before sending thekDrawPicker
request code, and the Color Picker Manager calls the Event Manager functionEndUpdate
after sending thekDrawPicker
request code.Your function should return
noErr
if 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.