Project

General

Profile

$toolbar » History » Version 14

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