---
title: "setWindowSize"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738927/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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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

> Macro (scroll-pagebreak)

## 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/ShogunPost121/pages/1253736717)
- [dockWindow](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736761)
- [floatWindow](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737910)
- [showWindow](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736492)
- [tabWindow](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736988)