Project

General

Profile

$menubar » History » Version 4

Per Amundsen, 09/05/2015 01:02 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 3 Per Amundsen
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>