Statusbar » History » Version 26
Per Amundsen, 05/16/2022 02:38 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */statusbar [on|off]* |
||
4 | |||
5 | 24 | Per Amundsen | Enables/disables [[Statusbar_Control|Statusbar]]. [[$statusbar]] can be used to determine it's state. |
6 | 1 | Per Amundsen | |
7 | 24 | Per Amundsen | If no parameter is defined, prints current [[Statusbar_Control|Statusbar]] visibility status. |
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | 19 | Mr. BS | table(ktable). |
12 | |_<. Parameter |_<. Description | |
||
13 | 24 | Per Amundsen | | [on] | Enables [[Statusbar_Control|Statusbar]]. | |
14 | | [off] | Disables [[Statusbar_Control|Statusbar]]. | |
||
15 | 2 | Per Amundsen | |
16 | 19 | Mr. BS | --- |
17 | 13 | Per Amundsen | |
18 | 2 | Per Amundsen | _Added in 1.9.7_ |
19 | |||
20 | 17 | Per Amundsen | */statusbar <-adrtgpoijlhnNzN> [N] <N|name> <tooltip> <@popup> [/alias] [picfile] [text]* |
21 | 1 | Per Amundsen | |
22 | 24 | Per Amundsen | Adds or removes custom text items/icons to the [[Statusbar_Control|Statusbar]]. |
23 | 1 | Per Amundsen | |
24 | 26 | Per Amundsen | _Does not work in built-in items._ |
25 | |||
26 | 25 | Per Amundsen | _See also [[$statusbar]], [[Statusbar_Control|Statusbar]]._ |
27 | 23 | Per Amundsen | |
28 | 1 | Per Amundsen | *Switches* |
29 | |||
30 | 19 | Mr. BS | table(ktable). |
31 | |_<. Switch |_<. Description | |
||
32 | | -a | Add a new item. | |
||
33 | | -d | Delete item named <name> or the Nth item. | |
||
34 | | -r | Resets all items to default. | |
||
35 | | -t | Change the tooltip text. | |
||
36 | | -g | Change the text. | |
||
37 | | -p | Change the picfile/icon. | |
||
38 | | -o | Change the associated @popup. | |
||
39 | | -i | Insert a item at position N. | |
||
40 | | -j | Indicates [/alias] is defined. | |
||
41 | | -l | Change the alias. | |
||
42 | | -w | Show a hidden item. | |
||
43 | | -h | Hide a item. | |
||
44 | | -nN | Indicates [picfile] is defined, N is the Nth icon index in a exe/dll file. | |
||
45 | | -zN | Icon size to use before it's resized in Statusbar height, 1 = small, 2 = large, 3 = actual. | |
||
46 | 15 | Per Amundsen | |
47 | 2 | Per Amundsen | *Parameters* |
48 | |||
49 | 19 | Mr. BS | table(ktable). |
50 | |_<. Parameter |_<. Description | |
||
51 | | [N] | Used with -d and -i to delete the Nth item or insert at the Nth position. | |
||
52 | | <notextile><N|name></notextile> | Insert a item at the Nth position or the name of the item to modify/add. | |
||
53 | | <tooltip> | The tooltip text. | |
||
54 | | <@popup> | Popup to associate with the item. | |
||
55 | | [/alias] | Optional alias to execute when the item is doubleclicked. | |
||
56 | 22 | Per Amundsen | | <notextile>[picfile]</notextile> | The picfile/icon to use when -n is defined. | |
57 | 19 | Mr. BS | | [text] | Optional text to add to a picfile/icon. | |
58 | 2 | Per Amundsen | |
59 | *Example* |
||
60 | |||
61 | <pre> |
||
62 | ; Create an example menu. |
||
63 | menu @Example { |
||
64 | Hello World:echo -ag Hello World menu |
||
65 | } |
||
66 | |||
67 | alias example { |
||
68 | echo -ag Hello world alias |
||
69 | } |
||
70 | |||
71 | ; Create a new statusbar item named 'example'. |
||
72 | /statusbar -a example @example /example Example |
||
73 | |||
74 | ; Update the text of the statusbar item 'example'. |
||
75 | /statusbar -g example Example2 |
||
76 | 11 | Mr. BS | |
77 | 2 | Per Amundsen | : Delete the statusbar item named 'example' |
78 | /statusbar -d example |
||
79 | |||
80 | 19 | Mr. BS | ; Create a new statusbar item in position 4. |
81 | 20 | Mr. BS | /statusbar -ij 4 example "" @example "/example Example" "Example" |
82 | 1 | Per Amundsen | </pre> |