Project

General

Profile

$toolbar » History » Version 9

Per Amundsen, 01/02/2019 06:53 AM

1 1 Per Amundsen
_Added in 1.9.3_
2
3
*$toolbar*
4
5 2 Per Amundsen
Returns [[$true]] if [[/toolbar|Toolbar]] is visible, otherwise [[$false]].
6 3 Per Amundsen
7 7 Per Amundsen
-----------------------------------------------------------------------------
8
9 6 Per Amundsen
*$toolbar(name||N)*
10 3 Per Amundsen
11
Returns properties for a Toolbar button.
12
13
*Parameters*
14
15
name||N - Toolbar item name or the Nth item, if N = 0, number of Toolbar items.
16
17
*Properties*
18
19 5 Per Amundsen
.name - Toolbar item name.
20
.type -  button or separator.
21 3 Per Amundsen
.tip - Toolbar tooltip text.
22
.alias - Toolbar alias.
23
.popup - Toolbar popup name.
24
.width - Toolbar item width.
25
.height - Toolbar item height.
26
.wide - TODO ($true)
27
.enabled - [[$true]] if the Toolbar item is enabled, otherwise [[$false]].
28
.visible - [[$true]] if the Toolbar item is visible, otherwise [[$false]].
29
.checked - [[$true]] if the Toolbar item is checked, otherwise [[$false]].
30
.alpha - TODO (0)
31 9 Per Amundsen
.x - Horizontal position of the toolbar item relative to the main AdiIRC window. (AdiIRC only)
32
.y - Vertical position of the toolbar item relative to the main AdiIRC window. (AdiIRC only)
33
.w - Toolbar item width. (AdiIRC only)
34
.h - Toolbar item height. (AdiIRC only)
35
.dx - Horizontal position of the toolbar item relative to the desktop. (AdiIRC only)
36
.dy - Vertical position of the toolbar item relative to the desktop. (AdiIRC only)
37 4 Per Amundsen
38
*Example*
39
40
<pre>
41
; Print number of Toolbar items.
42
//echo -ag $toolbar(0)
43
44
; Print the first Toolbar item name.
45
//echo -ag $toolbar(1)
46
</pre>