Important: The information in this document is obsolete and should not be used for new development.
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. TheGetPickerEditMenuState
function (page 2-48) returns these specifications in aMenuState
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 isfalse
, 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 isfalse
, 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 isfalse
, 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 isfalse
, 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 isfalse
, then the item is disabled.undoString
- The text for the Undo menu item.