Important: The information in this document is obsolete and should not be used for new development.
DoPickerEvent
Passes an event to a color picker for handling.
pascal OSErr DoPickerEvent ( picker thePicker, EventData *data);
thePicker- The color picker to handle the event.
data- A pointer to an
EventDatastructure (page 2-26). On input, you supply a color picker with information about an event; on output, you receive information about how the color picker handled the event.DISCUSSION
TheDoPickerEventfunction uses theEventDatastructure you point to in thedataparameter to pass an event to the color picker specified in the parameterthePicker. If the color picker handles the event, it returns the valuetruein thehandledfield of theEventDatastructure; otherwise, it returns the valuefalse, in which case your application should continue handling the event.SPECIAL CONSIDERATIONS
TheDoPickerEventfunction calls the Dialog Manager functionDialogSelect. If your application needs to filter or preprocess events beforeDialogSelecthandles them, your application must do so before callingDoPickerEvent.SEE ALSO
Listing 2-9 (page 2-19) in Advanced Color Imaging on the Mac OS illustrates how to use theDoPickerEventfunction. Event handling on the Macintosh is described in the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials. The Dialog Manager and theDialogSelectfunction are described in the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials.