# Mnemonics

'WINDOW' or 'WA' | Define/Draw 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:
- | (Minus sign) Indicates that the Window has a "minimize" button (requires 'X' option).
c | Window is a child of the current window.
m | Enables the "maximize" box in the top right corner of the window (requires 'X' and 'Z' option).
S | Window has a status line/message bar.
X | Enables the close button and system menu on the title bar of the window (i.e. the "X" in the top right corner).
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' 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.

## See Also

'DIALOGUE' Define/Draw Dialogue Region
'TEXTWDW' Create Text Window

## Example

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