Carbon


PickerMenuState

Header: ColorPickerComponents.h

struct PickerMenuState {
    Boolean cutEnabled; 
    Boolean copyEnabled; 
    Boolean pasteEnabled; 
    Boolean clearEnabled; 
    Boolean undoEnabled; 
    SInt8 filler; 
    Str255 undoString;
};

Field descriptions

cutEnabled

If the value returned in this field is true, then the Cut menu item is enabled; otherwise the item is disabled.

copyEnabled

If the value returned in this field is true, then the Copy menu item is enabled; otherwise the item is disabled.

pasteEnabled

If the value returned in this field is true, then the Paste menu item is enabled; otherwise the item is disabled.

clearEnabled

If the value returned in this field is true, then the Clear menu item is enabled; otherwise the item is disabled.

undoEnabled

If the value returned in this field is true, then the Undo menu item is enabled; otherwise the item is disabled.

filler

The text for the Undo menu item.

undoString

If your application is handling its own menus, and the color picker dialog box is the active window, your application needs to determine the color picker’s specifications for the Edit menu. The PickerGetEditMenuState function returns these specifications in a MenuState structure.


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