$toolbar » History » Version 4
Per Amundsen, 11/11/2015 09:59 PM
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 | $toolbar(name||N) |
||
8 | |||
9 | Returns properties for a Toolbar button. |
||
10 | |||
11 | *Parameters* |
||
12 | |||
13 | name||N - Toolbar item name or the Nth item, if N = 0, number of Toolbar items. |
||
14 | |||
15 | *Properties* |
||
16 | |||
17 | .name - Toolbar item name. |
||
18 | .type - TODO (button) |
||
19 | .tip - Toolbar tooltip text. |
||
20 | .alias - Toolbar alias. |
||
21 | .popup - Toolbar popup name. |
||
22 | .width - Toolbar item width. |
||
23 | .height - Toolbar item height. |
||
24 | .wide - TODO ($true) |
||
25 | .enabled - [[$true]] if the Toolbar item is enabled, otherwise [[$false]]. |
||
26 | .visible - [[$true]] if the Toolbar item is visible, otherwise [[$false]]. |
||
27 | .checked - [[$true]] if the Toolbar item is checked, otherwise [[$false]]. |
||
28 | .alpha - TODO (0) |
||
29 | 4 | Per Amundsen | |
30 | *Example* |
||
31 | |||
32 | <pre> |
||
33 | ; Print number of Toolbar items. |
||
34 | //echo -ag $toolbar(0) |
||
35 | |||
36 | ; Print the first Toolbar item name. |
||
37 | //echo -ag $toolbar(1) |
||
38 | </pre> |