$dockpanels » History » Version 8
Per Amundsen, 04/11/2022 01:23 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.4_ |
|---|---|---|---|
| 2 | |||
| 3 | *$dockpanels* |
||
| 4 | |||
| 5 | 5 | Per Amundsen | Returns [[$true]] if any dockpanel is visible except Treebar, otherwise [[$false]]. |
| 6 | 1 | Per Amundsen | |
| 7 | 6 | Per Amundsen | _See also [[Monitor Panels]]._ |
| 8 | 1 | Per Amundsen | |
| 9 | *$dockpanels(name)* |
||
| 10 | |||
| 11 | 5 | Per Amundsen | Returns [[$true]] if named dockpanel is visible, otherwise [[$false]]. |
| 12 | 1 | Per Amundsen | |
| 13 | *Parameters* |
||
| 14 | |||
| 15 | 7 | Per Amundsen | name - The panel name to check. (Server, Channel, Private, Url, Notify, Dcc, Highlight, Nicklist or Treebar) |
| 16 | 3 | Per Amundsen | |
| 17 | *Properties* |
||
| 18 | |||
| 19 | 8 | Per Amundsen | .side - Returns the docked panel side. (left/right/top/bottom) |
| 20 | .container - Returns the container position for the panel. |
||
| 21 | .panel - Returns the panel position. |
||
| 22 | .tab - Returns the tab position for the panel. |
||
| 23 | .name - Returns the name of the window/docked panel. |
||
| 24 | .locked - Returns [[$true]] if the docked panel is locked, otherwise [[$false]]. |
||
| 25 | .pinned - Returns [[$true]] if the docked panel is pinned, otherwise [[$false]]. |
||
| 26 | .visible - Returns [[$true]] if the docked panel is visible, otherwise [[$false]]. |
||
| 27 | .w - Returns the docked panel width. |
||
| 28 | .h - Returns the docked panel height. |
||
| 29 | 3 | Per Amundsen | .wid - Returns the window id of the panel if any. |
| 30 | 4 | Per Amundsen | |
| 31 | *Example* |
||
| 32 | |||
| 33 | <pre> |
||
| 34 | ; Display information about the highlight panels. |
||
| 35 | //echo -ag Higlight is $iif($dockpanels(Highlight), Visible, Hidden) |
||
| 36 | |||
| 37 | ; Hide the highlights dockpanel if it's in a window. |
||
| 38 | //window -h @ $+ $dockpanels(Highlight).wid |
||
| 39 | </pre> |