Previous: TextAttr To the Table of Content Next: WindMin

- 4.8.2.9 -
Standard Units
Crt Unit
CRT Unit Variables

WindMax variable

Targets: MS-DOS, OS/2, Win32 console


CRT Unit

Stores the screen coordinates of the current window.

Declaration:
var WindMax: Word;
Remarks:
These variables are set by calls to the Window procedure. WindMin VAR defines the upper left corner. WindMax defines the lower right corner.

The X coordinate is stored in the low byte, and the Y coordinate is stored in the high byte.

For example,
  Lo(WindMin)
produces the X coordinate of the left edge, and
  Hi(WindMax)
produces the Y coordinate of the bottom edge.

The screen's upper left corner corresponds to (X,Y) = (0,0), but for coordinates sent to Window and GotoXY, the upper left corner is at (1,1).


Previous: TextAttr To the Table of Content Next: WindMin
TextAttr Table of Content WindMin

- 4.8.2.9 -