Project

General

Profile

$menubar » History » Revision 11

Revision 10 (Per Amundsen, 03/26/2021 06:44 PM) → Revision 11/12 (Per Amundsen, 02/23/2023 05:13 PM)

_Added in 1.9.3_ 

 *$menubar* 

 Returns [[$true]] if [[/menubar|Menubar]] is visible, otherwise [[$false]]. 

 ----------------------------------------------------------------------------- 

 _Added in 1.9.7_ 

 *$menubar(name|N) (AdiIRC only)* 

 Returns the [[Menubar_Control|Menubar]] item matching name or the Nth item. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | name<notextile>|</notextile>N | name|N - Item name or the Nth item. | 

 *Properties* 
 .name - Item name. 
 .type - Returns the item type, 'separator' or 'menu'. 
 .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. 
 .x - Horizontal position of the menu item relative to the main AdiIRC window. 
 .y - Vertical position of the menu item relative to the main AdiIRC window. 
 .w - Menu item width. 
 .h - Menu item height. 
 .dx - Horizontal position of the menu item relative to the desktop. 
 .dy - Vertical position of the menu item relative to the desktop. 

 table(ktable). 
 |*Property*|*Description*| 
 *Example* 

 <pre> 
 ; Print number of menu items. 
 //echo -ag $menubar(0) 

 ; Print the first menu item name. 
 //echo -ag $menubar(1) 
 </pre>