$menubar » History » Revision 5
Revision 4 (Per Amundsen, 09/05/2015 01:02 PM) → Revision 5/12 (Per Amundsen, 10/05/2015 03:00 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 item matching name or the Nth item. 
 *Parameters* 
 name|N - Item name or the Nth item. 
 *Properties* 
 .name - Item name. 
 .text - Item text. 
 .icon - [[$true]] if the item is a icon, otherwise [[$false]]. 
 .visible - [[$true]] if the item is visible, otherwise [[$false]]. 
 .custom - [[$true]] if the item is custom, otherwise [[$false]]. 
 .popup - The @popup name if any. 
 *Example* 
 <pre> 
 ; Print number of menu items. 
 //echo -ag $menubar(0) 
 ; Print the first menu item name. 
 //echo -ag $menubar(1) 
 </pre>