Project

General

Profile

$menubar » History » Version 6

Per Amundsen, 07/06/2018 11: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 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 6 Per Amundsen
.type - Returns the item type, 'separator' or 'menu'.
23 4 Per Amundsen
.text - Item text.
24
.icon - [[$true]] if the item is a icon, otherwise [[$false]].
25
.visible - [[$true]] if the item is visible, otherwise [[$false]].
26
.custom - [[$true]] if the item is custom, otherwise [[$false]].
27 5 Per Amundsen
.popup - The @popup name if any.
28 6 Per Amundsen
29 3 Per Amundsen
30
*Example*
31
32
<pre>
33
; Print number of menu items.
34
//echo -ag $menubar(0)
35
36
; Print the first menu item name.
37
//echo -ag $menubar(1)
38
</pre>