Menuitem.mui Class Reference¶
BOOPSI custom class Menuitem.mui (MUI 3.8 dev). Each ### sub-section below documents one of the class's attributes or methods. Sub-classes of Menuitem.mui are listed at the end under Sub-classes; the class hierarchy itself is documented in the MUI classes index.
Function index¶
Class definition
Attributes
MUIA_Menuitem_CheckedMUIA_Menuitem_CheckitMUIA_Menuitem_CommandStringMUIA_Menuitem_EnabledMUIA_Menuitem_ExcludeMUIA_Menuitem_ShortcutMUIA_Menuitem_TitleMUIA_Menuitem_ToggleMUIA_Menuitem_Trigger
Menuitem.mui¶
MUIA_Menuitem_Checked¶
MUIA_Menuitem_Checked -- (V8 ) [ISG], BOOL
Function
set/get the checked state of a checkit menu item.
See also
MUIA_Menuitem_Checkit, MUIA_Menuitem_Enabled, MUIA_Menuitem_Exclude
MUIA_Menuitem_Checkit¶
MUIA_Menuitem_Checkit -- (V8 ) [ISG], BOOL
Function
Set to TRUE and this item will become a checkmarkable item.
See also
MUIA_Menuitem_Checked, MUIA_Menuitem_Enabled, MUIA_Menuitem_Exclude
MUIA_Menuitem_CommandString¶
MUIA_Menuitem_CommandString -- (V16) [ISG], BOOL
Function
Set to TRUE if MUIA_Menuitem_Shortcut points to a command string (e.g. "shift alt q") instead of a simple letter. Note that MUI wont check if these keys are pressed (just like intuition), you'll have to do this yourself.
See also
MUIA_Menuitem_Shortcut
MUIA_Menuitem_Enabled¶
MUIA_Menuitem_Enabled -- (V8 ) [ISG], BOOL
Function
enabled/disalbe the menu item.
See also
MUIA_Menuitem_Checkit, MUIA_Menuitem_Checked, MUIA_Menuitem_Exclude
MUIA_Menuitem_Exclude¶
MUIA_Menuitem_Exclude -- (V8 ) [ISG], LONG
Function
bitmask of menu item numbers that are to be deselected when this one is selected.
See also
MUIA_Menuitem_Checkit, MUIA_Menuitem_Enabled, MUIA_Menuitem_Checked
MUIA_Menuitem_Shortcut¶
MUIA_Menuitem_Shortcut -- (V8 ) [ISG], STRPTR — SPECIAL INPUTS — MUIV_Menuitem_Shortcut_Check
Function
Define the shortcut for a menu item.
See also
MUIA_Menuitem_Title
MUIA_Menuitem_Title¶
MUIA_Menuitem_Title -- (V8 ) [ISG], STRPTR
Function
Define the items title.
See also
MUIA_Menuitem_Shortcut
MUIA_Menuitem_Toggle¶
MUIA_Menuitem_Toggle -- (V8 ) [ISG], BOOL
Function
Define the state of the TOGGLE flag for this item.
See also
MUIA_Menuitem_Checkit, MUIA_Menuitem_Enabled, MUIA_Menuitem_Checked
MUIA_Menuitem_Trigger¶
**MUIA_Menuitem_Trigger -- (V8 ) [..G], struct MenuItem ***
Function
This attribute is set to a pointer to the struct MenuItem of the item object when the item is selected. By setting up notification on this attribute with MUIV_EveryTime, you can react on menu actions and query the MenuItems flags immediately. Note that menu reactions are also possible any maybe a bit easier with MUIA_Application_ReturnID, MUIA_Application_MenuAction and MUIA_Window_MenuAction.