Project

General

Profile

$menubar » History » Version 10

Per Amundsen, 03/26/2021 06:44 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 4 Per Amundsen
name|N - Item name or the Nth item.
18 3 Per Amundsen
19
*Properties*
20 4 Per Amundsen
.name - Item name.
21 6 Per Amundsen
.type - Returns the item type, 'separator' or 'menu'.
22 4 Per Amundsen
.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 1 Per Amundsen
.popup - The @popup name if any.
27 7 Per Amundsen
.x - Horizontal position of the menu item relative to the main AdiIRC window.
28
.y - Vertical position of the menu item relative to the main AdiIRC window.
29
.w - Menu item width.
30
.h - Menu item height.
31
.dx - Horizontal position of the menu item relative to the desktop.
32
.dy - Vertical position of the menu item relative to the desktop.
33 3 Per Amundsen
34
*Example*
35
36
<pre>
37
; Print number of menu items.
38
//echo -ag $menubar(0)
39
40
; Print the first menu item name.
41
//echo -ag $menubar(1)
42
</pre>