Carbon


Event Forcasters

Header: ColorPickerComponents.h

enum {
    kNoForcast = 0,
    kMenuChoice = 1,
    kDialogAccept = 2,
    kDialogCancel = 3,
    kLeaveFocus = 4,
    kNormalKeyDown = 6,
    kNormalMouseDown = 7
};

Constant descriptions

kNoForcast

No forecast (e.g., an update event).

kMenuChoice

Warns that this event causes a menu to be chosen.

kDialogAccept

Warns that the dialog box will be accepted.

kDialogCancel

Warns that the dialog box will be canceled.

kLeaveFocus

Warns that the focus will leave the color picker.

kNormalKeyDown

Warns of a normal key down to an edit field.

kNormalMouseDown

Warns of a normal click in the color picker's focus.

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—PickerEvent—except that in the EventData structure that your application passes to DoPickerEvent, your application sets the event field to NULL and the forcast field to an appropriate constant from this enumeration.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)