Project

General

Profile

Statusbar » History » Revision 21

Revision 20 (Mr. BS, 03/12/2017 06:07 PM) → Revision 21/26 (Per Amundsen, 03/28/2018 09:47 PM)

_Added in 1.9.0_ 

 */statusbar [on|off]* 

 Enables/disables Statusbar. [[$statusbar]] can be used to determine it's state. 

 If no parameter is defined, prints current Statusbar visibility status. 

 *Parameters* 

 table(ktable). 
 |_<. Parameter |_<. Description | 
 | [on] | Enables Statusbar. | 
 | [off] | Disables Statusbar. | 

 --- 

 _Added in 1.9.7_ 

 */statusbar <-adrtgpoijlhnNzN> [N] <N|name> <tooltip> <@popup> [/alias] [picfile] [text]* 

 Adds or removes custom text items/icons to the Statusbar. 

 *Switches* 

 table(ktable). 
 |_<. Switch |_<. Description | 
 | -a | Add a new item. | 
 | -d | Delete item named <name> or the Nth item. | 
 | -r | Resets all items to default. | 
 | -t | Change the tooltip text. | 
 | -g | Change the text. | 
 | -p | Change the picfile/icon. | 
 | -o | Change the associated @popup. | 
 | -i | Insert a item at position N. | 
 | -j | Indicates [/alias] is defined. | 
 | -l | Change the alias. | 
 | -w | Show a hidden item. | 
 | -h | Hide a item. | 
 | -nN | Indicates [picfile] is defined, N is the Nth icon index in a exe/dll file. | 
 | -zN | Icon size to use before it's resized in Statusbar height, 1 = small, 2 = large, 3 = actual. | 

 *Parameters* 

 table(ktable). 
 |_<. Parameter |_<. Description | 
 | [N] | Used with -d and -i to delete the Nth item or insert at the Nth position. | 
 | <notextile><N|name></notextile> | Insert a item at the Nth position or the name of the item to modify/add. | 
 | <tooltip> | The tooltip text. | 
 | <@popup> | Popup to associate with the item. | 
 | [/alias] | Optional alias to execute when the item is doubleclicked. | 
 | <notextile>[picfile]</notextile> <notextile><text|picfile></notextile> | The item item or picfile/icon to use when -j -n is defined. | 
 | [text] | Optional text to add to a picfile/icon. | 

 *Example* 

 <pre> 
 ; Create an example menu. 
 menu @Example { 
   Hello World:echo -ag Hello World menu 
 } 

 alias example { 
   echo -ag Hello world alias 
 } 

 ; Create a new statusbar item named 'example'. 
 /statusbar -a example @example /example Example 

 ; Update the text of the statusbar item 'example'. 
 /statusbar -g example Example2 

 : Delete the statusbar item named 'example' 
 /statusbar -d example 

 ; Create a new statusbar item in position 4. 
 /statusbar -ij 4 example "" @example "/example Example" "Example" 
 </pre>