Menuitem.mui
DESCRIPTION
Menuitem.mui/Menuitem.mui Menuitem class describes a single menu item. You can use all of the gadtools menus features expect Image menus here. Since Menuitem class is a subclass of Family class, you can add other menu items as children of a menu item to indicate sub menus. MUI does not limit the level of sub menus, but the operating system currently allows a maximum nesting level of one. Because of this, children of menu items should not contain other menu items for now, the results are unpredictable. Note: For handling menu items, MUIA_UserData and the methods MUIM_SetUData, MUIM_GetUData and MUIM_FindUData can become quite useful. See the Menu demo program and the accompanying documentation for details
MUIA_Menuitem_Checked
(V8 ) [ISG], BOOL, 0x8042562a
DESCRIPTION
set/get the checked state of a checkit menu item
SEE ALSO
MUIA_Menuitem_Checkit
(V8 ) [ISG], BOOL, 0x80425ace
DESCRIPTION
Set to TRUE and this item will become a checkmarkable item
SEE ALSO
MUIA_Menuitem_CommandString
(V16) [ISG], BOOL, 0x8042b9cc
DESCRIPTION
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_CopyStrings
(V16) [I..], BOOL, 0x8042dc1b
DESCRIPTION
yet undocumented, please complain in mailinglist
MUIA_Menuitem_Enabled
(V8 ) [ISG], BOOL, 0x8042ae0f
DESCRIPTION
enabled/disalbe the menu item
SEE ALSO
MUIA_Menuitem_Exclude
(V8 ) [ISG], LONG, 0x80420bc6
DESCRIPTION
bitmask of menu item numbers that are to be deselected when this one is selected
SEE ALSO
MUIA_Menuitem_Menuitem
(V20) [ISG], Boopsiobject *, 0x80424b21
DESCRIPTION
yet undocumented, please complain in mailinglist
MUIA_Menuitem_Shortcut
(V8 ) [ISG], STRPTR, 0x80422030
DESCRIPTION
Define the shortcut for a menu item
SPECIAL INPUTS
MUIV_Menuitem_Shortcut_Check
SEE ALSO
MUIA_Menuitem_Title
(V8 ) [ISG], STRPTR, 0x804218be
DESCRIPTION
Define the items title. May be NM_BARLABEL to create a horizontal bar
SEE ALSO
MUIA_Menuitem_Toggle
(V8 ) [ISG], BOOL, 0x80424d5c
DESCRIPTION
Define the state of the TOGGLE flag for this item
SEE ALSO
MUIA_Menuitem_Trigger
(V8 ) [.SG], struct MenuItem *, 0x80426f32
DESCRIPTION
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