$menubar » History » Version 12
Per Amundsen, 02/23/2023 05:14 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.3_ |
|---|---|---|---|
| 2 | |||
| 3 | *$menubar* |
||
| 4 | |||
| 5 | 2 | Per Amundsen | Returns [[$true]] if [[/menubar|Menubar]] is visible, otherwise [[$false]]. |
| 6 | 3 | Per Amundsen | |
| 7 | ----------------------------------------------------------------------------- |
||
| 8 | |||
| 9 | _Added in 1.9.7_ |
||
| 10 | |||
| 11 | 9 | Per Amundsen | *$menubar(name|N) (AdiIRC only)* |
| 12 | 3 | Per Amundsen | |
| 13 | 10 | Per Amundsen | Returns the [[Menubar_Control|Menubar]] item matching name or the Nth item. |
| 14 | 3 | Per Amundsen | |
| 15 | *Parameters* |
||
| 16 | |||
| 17 | 11 | Per Amundsen | table(ktable). |
| 18 | |*Parameter*|*Description*| |
||
| 19 | | name<notextile>|</notextile>N | Item name or the Nth item. | |
||
| 20 | 3 | Per Amundsen | |
| 21 | *Properties* |
||
| 22 | 1 | Per Amundsen | |
| 23 | table(ktable). |
||
| 24 | |*Property*|*Description*| |
||
| 25 | 12 | Per Amundsen | | .name | Item name. | |
| 26 | | .type | Returns the item type, 'separator' or 'menu'. | |
||
| 27 | | .text | Item text. | |
||
| 28 | | .icon | [[$true]] if the item is a icon, otherwise [[$false]]. | |
||
| 29 | | .visible | [[$true]] if the item is visible, otherwise [[$false]]. | |
||
| 30 | | .custom | [[$true]] if the item is custom, otherwise [[$false]]. | |
||
| 31 | | .popup | The @popup name if any. | |
||
| 32 | | .x | Horizontal position of the menu item relative to the main AdiIRC window. | |
||
| 33 | | .y | Vertical position of the menu item relative to the main AdiIRC window. | |
||
| 34 | | .w | Menu item width. | |
||
| 35 | | .h | Menu item height. | |
||
| 36 | | .dx | Horizontal position of the menu item relative to the desktop. | |
||
| 37 | | .dy | Vertical position of the menu item relative to the desktop. | |
||
| 38 | |||
| 39 | 3 | Per Amundsen | *Example* |
| 40 | |||
| 41 | <pre> |
||
| 42 | ; Print number of menu items. |
||
| 43 | //echo -ag $menubar(0) |
||
| 44 | |||
| 45 | ; Print the first menu item name. |
||
| 46 | //echo -ag $menubar(1) |
||
| 47 | </pre> |