$toolbar » History » Version 8
Per Amundsen, 01/02/2019 05:29 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 | 8 | Per Amundsen | .x - Horizontal position of the toolbar item relative to the main AdiIRC window. |
32 | .y - Vertical position of the toolbar item relative to the main AdiIRC window. |
||
33 | .w - Toolbar item width. |
||
34 | .h - Toolbar item height. |
||
35 | .dx - Horizontal position of the toolbar item relative to the desktop. |
||
36 | .dy - Vertical position of the toolbar item relative to the desktop. |
||
37 | |||
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> |