$menubar » History » Version 11
Per Amundsen, 02/23/2023 05:13 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 | 4 | Per Amundsen | .name - Item name. |
23 | 6 | Per Amundsen | .type - Returns the item type, 'separator' or 'menu'. |
24 | 4 | Per Amundsen | .text - Item text. |
25 | .icon - [[$true]] if the item is a icon, otherwise [[$false]]. |
||
26 | .visible - [[$true]] if the item is visible, otherwise [[$false]]. |
||
27 | .custom - [[$true]] if the item is custom, otherwise [[$false]]. |
||
28 | 1 | Per Amundsen | .popup - The @popup name if any. |
29 | 7 | Per Amundsen | .x - Horizontal position of the menu item relative to the main AdiIRC window. |
30 | .y - Vertical position of the menu item relative to the main AdiIRC window. |
||
31 | .w - Menu item width. |
||
32 | .h - Menu item height. |
||
33 | .dx - Horizontal position of the menu item relative to the desktop. |
||
34 | .dy - Vertical position of the menu item relative to the desktop. |
||
35 | 1 | Per Amundsen | |
36 | 11 | Per Amundsen | table(ktable). |
37 | |*Property*|*Description*| |
||
38 | 3 | Per Amundsen | *Example* |
39 | |||
40 | <pre> |
||
41 | ; Print number of menu items. |
||
42 | //echo -ag $menubar(0) |
||
43 | |||
44 | ; Print the first menu item name. |
||
45 | //echo -ag $menubar(1) |
||
46 | </pre> |