$menubar » History » Revision 4
Revision 3 (Per Amundsen, 08/27/2015 07:55 PM) → Revision 4/12 (Per Amundsen, 09/05/2015 01:02 PM)
_Added in 1.9.3_ *$menubar* Returns [[$true]] if [[/menubar|Menubar]] is visible, otherwise [[$false]]. ----------------------------------------------------------------------------- _Added in 1.9.7_ *$menubar(name|N)* Returns the Menubar menubar item matching name or the Nth menu item. *Parameters* name|N - Item Menu item name or the Nth menu item. *Properties* .name - Item Menu item name. .text - Item Menu item text. .icon - [[$true]] if the menu item is a icon, otherwise [[$false]]. .visible - [[$true]] if the menu item is visible, otherwise [[$false]]. .custom - [[$true]] if the menu item is custom, otherwise [[$false]]. *Example* <pre> ; Print number of menu items. //echo -ag $menubar(0) ; Print the first menu item name. //echo -ag $menubar(1) </pre>