$statusbar » History » Version 13
Per Amundsen, 02/23/2023 07:33 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.3_ |
|---|---|---|---|
| 2 | |||
| 3 | *$statusbar* |
||
| 4 | |||
| 5 | 9 | Per Amundsen | Returns [[$true]] if [[Statusbar_Control|Statusbar]] is visible, otherwise [[$false]]. |
| 6 | 3 | Per Amundsen | |
| 7 | 11 | Per Amundsen | _See also [[/statusbar]], [[Statusbar_Control|Statusbar]]._ |
| 8 | |||
| 9 | 7 | Per Amundsen | ----------------------------------------------------------------------------- |
| 10 | |||
| 11 | 3 | Per Amundsen | _Added in 1.9.7_ |
| 12 | |||
| 13 | *$statusbar(name|N)* |
||
| 14 | |||
| 15 | Returns the [[Statusbar_Control|Statusbar]] item matching name or the Nth item, if N = 0, number of Statusbar items. |
||
| 16 | 1 | Per Amundsen | |
| 17 | 12 | Per Amundsen | _.alias, .popup, .iconfile properties does not work for built-in items._ |
| 18 | |||
| 19 | 11 | Per Amundsen | _See also [[/statusbar]], [[Statusbar_Control|Statusbar]]._ |
| 20 | 6 | Per Amundsen | |
| 21 | 3 | Per Amundsen | *Parameters* |
| 22 | |||
| 23 | 13 | Per Amundsen | table(ktable). |
| 24 | |*Parameter*|*Description*| |
||
| 25 | | name<notextile>|</notextile>N | [[Statusbar_Control<notextile>|</notextile>Statusbar]] item name or the Nth item. | |
||
| 26 | 1 | Per Amundsen | |
| 27 | *Properties* |
||
| 28 | |||
| 29 | 13 | Per Amundsen | table(ktable). |
| 30 | |*Property*|*Description*| |
||
| 31 | | .name | Item name. | |
||
| 32 | | .text | Item text. | |
||
| 33 | | .icon | [[$true]] if the item has a icon, otherwise [[$false]]. | |
||
| 34 | | .visible | [[$true]] if the item is visible, otherwise [[$false]]. | |
||
| 35 | | .custom | [[$true]] if the item is custom, otherwise [[$false]]. | |
||
| 36 | | .tooltip | Item tooltip. | |
||
| 37 | | .alias | Item alias. | |
||
| 38 | | .iconfile | Returns the icon file, if any. | |
||
| 39 | | .popup | Item popup name. | |
||
| 40 | | .x | Horizontal position of the [[Statusbar_Control<notextile>|</notextile>Statusbar]] item relative to the main AdiIRC window. | |
||
| 41 | | .y | Vertical position of the [[Statusbar_Control<notextile>|</notextile>Statusbar]] item relative to the main AdiIRC window. | |
||
| 42 | | .w | [[Statusbar_Control<notextile>|</notextile>Statusbar]] item width. | |
||
| 43 | | .h | [[Statusbar_Control<notextile>|</notextile>Statusbar]] item height. | |
||
| 44 | | .dx | Horizontal position of the [[Statusbar_Control<notextile>|</notextile>Statusbar]] item relative to the desktop. | |
||
| 45 | | .dy | Vertical position of the [[Statusbar_Control<notextile>|</notextile>Statusbar]] item relative to the desktop. | |
||
| 46 | 3 | Per Amundsen | |
| 47 | *Example* |
||
| 48 | |||
| 49 | <pre> |
||
| 50 | ; Print number of Statusbar items. |
||
| 51 | //echo -ag $statusbar(0) |
||
| 52 | |||
| 53 | ; Print the first Statusbar item name. |
||
| 54 | //echo -ag $statusbar(1) |
||
| 55 | </pre> |