$menubar » History » Version 3
Per Amundsen, 08/27/2015 07:55 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 | *$menubar(name|N)* |
||
12 | |||
13 | Returns the menubar item matching name or the Nth menu item. |
||
14 | |||
15 | *Parameters* |
||
16 | |||
17 | name|N - Menu item name or the Nth menu item. |
||
18 | |||
19 | *Properties* |
||
20 | |||
21 | .name - Menu item name. |
||
22 | .text - Menu item text. |
||
23 | .icon - [[$true]] if the menu item is a icon, otherwise [[$false]]. |
||
24 | .visible - [[$true]] if the menu item is visible, otherwise [[$false]]. |
||
25 | .custom - [[$true]] if the menu item is custom, otherwise [[$false]]. |
||
26 | |||
27 | *Example* |
||
28 | |||
29 | <pre> |
||
30 | ; Print number of menu items. |
||
31 | //echo -ag $menubar(0) |
||
32 | |||
33 | ; Print the first menu item name. |
||
34 | //echo -ag $menubar(1) |
||
35 | </pre> |