DoPickerEventPasses an event to a color picker for handling.
pascal OSErr DoPickerEvent ( picker thePicker, EventData *data);
- The color picker to handle the event.
- 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.
DoPickerEventfunction uses the
EventDatastructure you point to in the
dataparameter to pass an event to the color picker specified in the parameter
thePicker. If the color picker handles the event, it returns the value
handledfield of the
EventDatastructure; otherwise, it returns the value
false, in which case your application should continue handling the event.
DoPickerEventfunction calls the Dialog Manager function
DialogSelect. If your application needs to filter or preprocess events before
DialogSelecthandles them, your application must do so before calling
SEE ALSOListing 2-9 (page 2-19) in Advanced Color Imaging on the Mac OS illustrates how to use the
DoPickerEventfunction. Event handling on the Macintosh is described in the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials. The Dialog Manager and the
DialogSelectfunction are described in the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials.