Project

General

Profile

$toolbar » History » Version 11

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

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