---
title: "setWindowSize"
canonical: "https://help.vicon.com/space/Shogun16/13341700/setWindowSize"
format: markdown
---
# Description

Enables you to set the size of a docking window (or pane). You must specify either the `-width` or `-height` flag, or both, otherwise the command has no effect.

Note that sizing docked panes is not yet supported (only floating panes).

## Functional area

Interface

# Command syntax

## Syntax

|  |
| --- |
| `setWindowSize "windowName" [-width integer] [-height integer]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `windowName` | string | true | The name of the docking window (or pane) to size |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `width` | 1 | integer | — | The new width of the window, in pixels |
| `height` | 1 | integer | — | The new height of the window, in pixels |

## Return value

void

## Examples

```plaintext
// This sets the width of the "Attributes" window to 200 pixels
setWindowSize "Attributes" -width 200;
```

# Additional information

## Related commands

- [autohideWindow](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339968)
- [dockWindow](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339875)
- [floatWindow](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341096)
- [showWindow](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341718)
- [tabWindow](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341812)