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


Edit Menu State Structure

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 GetPickerEditMenuState function (page 2-48) returns these specifications in a MenuState structure.

typedef struct MenuState {
   Boolean  cutEnabled; /* whether Cut menu item is enabled */
   Boolean  copyEnabled;/* whether Copy menu item is enabled */
   Boolean  pasteEnabled;/* whether Paste menu item's enabled */
   Boolean  clearEnabled;/* whether Clear menu item's enabled */
   Boolean  undoEnabled;/* whether Undo menu item is enabled */
   Str255   undoString; /* text for Undo menu item */
} MenuState;
Field Description
cutEnabled
If the value returned in this field is true, then the Cut menu item is enabled; if the value is false, then the item is disabled.
copyEnabled
If the value returned in this field is true, then the Copy menu item is enabled; if the value is false, then the item is disabled.
pasteEnabled
If the value returned in this field is true, then the Paste menu item is enabled; if the value is false, then the item is disabled.
clearEnabled
If the value returned in this field is true, then the Clear menu item is enabled; if the value is false, then the item is disabled.
undoEnabled
If the value returned in this field is true, then the Undo menu item is enabled; if the value is false, then the item is disabled.
undoString
The text for the Undo menu item.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996