Project

General

Profile

$toolbar » History » Version 13

Per Amundsen, 04/30/2022 01:20 AM

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 13 Per Amundsen
.iconfile - Returns the icon file, if any. *(AdiIRC only)*
32 12 Per Amundsen
.x - Horizontal position of the [[Toolbar_Control|Toolbar]] item relative to the main AdiIRC window. *(AdiIRC only)*
33
.y - Vertical position of the [[Toolbar_Control|Toolbar]] item relative to the main AdiIRC window. *(AdiIRC only)*
34
.w - [[Toolbar_Control|Toolbar]] item width. *(AdiIRC only)*
35
.h - [[Toolbar_Control|Toolbar]] item height. *(AdiIRC only)*
36
.dx - Horizontal position of the [[Toolbar_Control|Toolbar]] item relative to the desktop. *(AdiIRC only)*
37
.dy - Vertical position of the [[Toolbar_Control|Toolbar]] item relative to the desktop. *(AdiIRC only)*
38 4 Per Amundsen
39
*Example*
40
41
<pre>
42
; Print number of Toolbar items.
43
//echo -ag $toolbar(0)
44
45
; Print the first Toolbar item name.
46
//echo -ag $toolbar(1)
47
</pre>