# 'WINDOW' or 'WA' Define/Draw Window

> Source: https://manual.pvxplus.com/mnemonics/window

**GUI Display *or* Character Display**

## Format

'WINDOW'(*col*,*ln*,*wth*,*ht*\[,*wdw_id*\],\[*title$*\]\[,*attrib$*\]\[,OPT=*val$*\]**)**

***Where:***

|  |  |
| --- | --- |
| *col,ln,wth,ht* | Position/coordinates. Numeric expressions. Column and line coordinates for top left corner, width in number of columns, height in number of lines. |
| *attrib$* | Attribute string. Optional. If you include attributes, use a string of one or more mnemonics to define the defaults for the window. |
| *title$* | Optional title. String expression/literal. |
| *val$* | Valid **OPT=** values for defining windows in a graphics environment (ignored in text mode). Valid options are:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| **-** \| (*Minus sign*) Indicates that the Window has a "minimize" button (requires 'X' option). \|<br>\| **c** \| Window is a child of the current window. \|<br>\| **m** \| Enables the "maximize" box in the top right corner of the window (requires 'X' and 'Z' option). \|<br>\| **S** \| Window has a status line/message bar. \|<br>\| **X** \| Enables the close button and system menu on the title bar of the window (i.e. the "X" in the top right corner). \|<br>\| **Z** \| Creates a resizable window. \| |
| *wdw_id* | Window's unique ID number (0 - 255). |

## Description

Use either **'WINDOW'** or **'WA'** in the format to draw (print) a new window. If you include a title, a box of the defined height and width is drawn around the window. The title will be left justified on the top line of the box unless the **'[AH](https://manual.pvxplus.com/parameters/ah)'** system parameter is set.

By default, under Windows, the title bar will not have a close button or any other adornment (buttons or system menu icon) other than the title. These can be added by specifying the 'X' option.

PxPlus uses the WS_BORDER and WS_THICKFRAME frame styles from the Windows API with the **'WINDOW'** mnemonic. See **[Windows API Frame Styles](https://manual.pvxplus.com/mnemonics#Mark5)**.

## See Also

['DIALOGUE' Define/Draw Dialogue Region](https://manual.pvxplus.com/mnemonics/dialogue)  
['TEXTWDW' Create Text Window](https://manual.pvxplus.com/mnemonics/textwdw)

## Example

```
print 'window'(5,5,100,40,"Title",opt="S")
```
