ProvideX V8.20 > Language Reference > 5. Mnemonics
645
'WINDOW' or 'WA' Mnemonic
        Define / Draw Window
GUI Display or Character Display
Format
'WINDOW'(col,ln,wth,ht[,wdw_id],[title$][,attrib$][,OPT=string$])
Where:
@(col,ln, Position / coordinates. Numeric expressions. Column and line
wth,ht)
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.
string$
Optional attributes for defining windows in a graphics environment
(some options are ignored in text mode '+W' & '-W', p.643):
-
Window has a minimize button.
c  New window is a child of the window that launched it.
C  Disables X close button on title bar of window and eliminates the
system control menu from the title bar.
m Enables "maximize" box in top right corner of window (only for
dialogue windows created with OPT="*").
S  Window has Status line / Message Bar.
x  Disables X close button on title bar of window and eliminates the
system control menu from the title bar.
X  Enables X close button on title bar of window and supports the
system control menu on the title bar.
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.
ProvideX uses the WS_BORDER and WS_THICKFRAME frame styles from the
Windows API with the 'WINDOW' mnemonic. For more information, see Windows
API Frame Styles, p.577. See also: 'DIALOGUE' Define / Draw Dialogue Region,
p.598 and 'TEXTWDW' Create Text Window, p.641
Example
PRINT 'WINDOW'(5,5,100,40,"Title",OPT="-mSZ")