Toolbar » History » Version 19
Per Amundsen, 08/22/2016 10:14 AM
1 | 9 | Per Amundsen | _Added in 1.9.1_ |
---|---|---|---|
2 | 1 | Per Amundsen | |
3 | 9 | Per Amundsen | */toolbar [on|off] [-aidmsxkNnNzNebwhyNurctplof[sld]] [N] <name/N> <tooltip> <picfile|<notextile>@</notextile>> [x y w h] [/alias] [popfile|<notextile>@</notextile>]* |
4 | |||
5 | 1 | Per Amundsen | *Switches* |
6 | |||
7 | -a - Add button. |
||
8 | 16 | Per Amundsen | -i - Insert button at position [N]. |
9 | 12 | Per Amundsen | -d - Deletes the Nth button or <name>. |
10 | 15 | Per Amundsen | -m - Moves button <name/N> to position [N]. |
11 | 1 | Per Amundsen | -s - Add separator. |
12 | -x - TODO |
||
13 | 18 | Per Amundsen | -kN - Check or uncheck the Nth button or <name>, 0 = check, 1 = uncheck. |
14 | 10 | Per Amundsen | -nN - icon index in picfile. |
15 | 1 | Per Amundsen | -zN - Icon size, 1 = small, 2 = large, 3 = actual. |
16 | 17 | Per Amundsen | -e - Enable button [N] or <name>. |
17 | -b - Disable button [N] or <name>. |
||
18 | -w - Show button [N] or <name> |
||
19 | -h - Hide button [N] or <name> |
||
20 | 1 | Per Amundsen | -yN - TODO |
21 | -u - Update display immediately. |
||
22 | 14 | Per Amundsen | -r - Resets all buttons to default. |
23 | 13 | Per Amundsen | -c - Clear all buttons. |
24 | 1 | Per Amundsen | -t - Update tooltip. |
25 | -p - Update picfile. |
||
26 | -l - Update alias. |
||
27 | 8 | Per Amundsen | -o - Update popupfile. |
28 | 1 | Per Amundsen | -f - TODO |
29 | |||
30 | *Parameters* |
||
31 | |||
32 | 9 | Per Amundsen | [on|off] - Enables/Disables Toolbar, use [[$toolbar]] to determine toolbar status. |
33 | 1 | Per Amundsen | [N] - Button position to modify. |
34 | <name/N> - Name or position of button to modify. |
||
35 | <tooltip> - Tooltip for the button. |
||
36 | 4 | Per Amundsen | <picfile|<notextile>@</notextile>> - Icon/Image file to use for the button or pic window name. |
37 | 6 | Per Amundsen | [x y w h] - TODO |
38 | 1 | Per Amundsen | [/alias] - Alias command to add to the button. |
39 | 11 | Per Amundsen | [popfile|<notextile>@</notextile>] - popfile = TODO, @name pic window name. |
40 | 19 | Per Amundsen | |
41 | *Example* |
||
42 | |||
43 | <pre> |
||
44 | ; Add a button. |
||
45 | /toolbar -a mybutton "My button tooltip" "c:\icons\myicon.png" "/mycommand" |
||
46 | |||
47 | ; Change the icon. |
||
48 | /toolbar -p mybutton "c:\icons\myicon2.png" |
||
49 | |||
50 | ; Change the alias. |
||
51 | /toolbar -l mybutton /mycommand2 |
||
52 | |||
53 | ; Remove a button. |
||
54 | /toolbar -d mybutton |
||
55 | </pre> |