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