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
EventData
structure (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
TheDoPickerEvent
function uses theEventData
structure you point to in thedata
parameter to pass an event to the color picker specified in the parameterthePicker
. If the color picker handles the event, it returns the valuetrue
in thehandled
field of theEventData
structure; otherwise, it returns the valuefalse
, in which case your application should continue handling the event.SPECIAL CONSIDERATIONS
TheDoPickerEvent
function calls the Dialog Manager functionDialogSelect
. If your application needs to filter or preprocess events beforeDialogSelect
handles 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 theDoPickerEvent
function. Event handling on the Macintosh is described in the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials. The Dialog Manager and theDialogSelect
function are described in the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials.