Project

General

Profile

$toolbar » History » Version 12

Per Amundsen, 03/27/2021 06:10 PM

1 1 Per Amundsen
_Added in 1.9.3_
2
3
*$toolbar*
4
5 12 Per Amundsen
Returns [[$true]] if the [[Toolbar_Control|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 12 Per Amundsen
Returns properties for a [[Toolbar_Control|Toolbar]] button.
12 3 Per Amundsen
13
*Parameters*
14
15 12 Per Amundsen
name||N - Toolbar item name or the Nth item, if N = 0, number of [[Toolbar_Control|Toolbar]] items.
16 3 Per Amundsen
17
*Properties*
18
19 12 Per Amundsen
.name - [[Toolbar_Control|Toolbar]] item name.
20 5 Per Amundsen
.type -  button or separator.
21 12 Per Amundsen
.tip - [[Toolbar_Control|Toolbar]] tooltip text.
22
.alias - [[Toolbar_Control|Toolbar]] alias.
23
.popup - [[Toolbar_Control|Toolbar]] popup name.
24
.width - [[Toolbar_Control|Toolbar]] item width.
25
.height - [[Toolbar_Control|Toolbar]] item height.
26 10 Per Amundsen
.wide - *TODO* ($true)
27 3 Per Amundsen
.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 10 Per Amundsen
.alpha - *TODO* (0)
31 12 Per Amundsen
.x - Horizontal position of the [[Toolbar_Control|Toolbar]] item relative to the main AdiIRC window. *(AdiIRC only)*
32
.y - Vertical position of the [[Toolbar_Control|Toolbar]] item relative to the main AdiIRC window. *(AdiIRC only)*
33
.w - [[Toolbar_Control|Toolbar]] item width. *(AdiIRC only)*
34
.h - [[Toolbar_Control|Toolbar]] item height. *(AdiIRC only)*
35
.dx - Horizontal position of the [[Toolbar_Control|Toolbar]] item relative to the desktop. *(AdiIRC only)*
36
.dy - Vertical position of the [[Toolbar_Control|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>