Previous: 4.8.1.9 WindMax variable To the Table of Contents Next: 4.8.2. CRT Unit Procedures and Functions
4.8.1.9 WindMax variable Table of Contents 4.8.2. CRT Unit Procedures and Functions

- 4.8.1.10 -
Table of Contents
4. Standard Units
4.8. CRT - Keyboard and monitor control routines
4.8.1.10 WindMin variable


4.8.1.10 WindMin 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: 4.8.1.9 WindMax variable To the Table of Contents Next: 4.8.2. CRT Unit Procedures and Functions
4.8.1.9 WindMax variable Table of Contents 4.8.2. CRT Unit Procedures and Functions

- 4.8.1.10 -