Important: The information in this document is obsolete and should not be used for new development.
Event Forecasters
Your application can send event forecasters to warn the color picker about potential user actions. To send event forecasters to the color picker, you use the same function as for regular events--DoPickerEvent
--except that in theEventData
structure (page 2-26) that your application passes toDoPickerEvent
(page 2-44), your application sets theevent
field tonil
and theforcast
field to an appropriate constant from the following list:
enum EventForcasters { kNoForcast, /* no forecast (e.g., an update event) */ kMenuChoice, /* this event causes a menu to be chosen */ kDialogAccept, /* the dialog box will be accepted */ kDialogCancel, /* the dialog box will be canceled */ kLeaveFocus, /* the focus will leave the color picker */ kPickerSwitch, /* new color picker chosen in More Choices list */ kNormalKeyDown, /* a normal key down to an edit field */ kNormalMouseDown /* a normal click in the color picker's focus */ }; typedef short EventForcaster;For more information, see "Sending Event Forecasters to the Color Picker" (page 2-23) in Advanced Color Imaging on the Mac OS.