Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Constants and Data Types


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 the EventData structure (page 2-26) that your application passes to DoPickerEvent (page 2-44), your application sets the event field to nil and the forcast 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996