Project

General

Profile

$toolbar » History » Version 7

Per Amundsen, 08/30/2018 07:34 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 4 Per Amundsen
32
*Example*
33
34
<pre>
35
; Print number of Toolbar items.
36
//echo -ag $toolbar(0)
37
38
; Print the first Toolbar item name.
39
//echo -ag $toolbar(1)
40
</pre>