qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WindMin and WindMax
  ◄Crt Unit► ◄Contents► ◄Index►                                   ◄Back►
 
  VAR
      WindMin : Word;    { upper-left window coordinates }
      WindMax : Word;    { lower-right window coordinates }
 
  Unit:     Crt
 
  Context:  Hi, Lo, Window
 
  Description
 
    WindMin and WindMax hold the display coordinates for the current
    window. WindMin holds the coordinates of the upper-left corner of
    the window. WindMax holds the coordinates of the lower-right
    corner.
 
    The coordinates are set at program start-up to the maximum values
    for the existing mode. They are changed if the mode is changed by a
    call to the TextMode procedure and if the current window is
    changed by a call to the Window procedure.
 
    Each variable holds an x coordinate in the low byte of its word,
    and a y coordinate in the high byte. Use the Lo and Hi functions to
    get the individual coordinates.
 
    The coordinates are zero-based. The minimum coordinates for the
    upper-left corner are (0,0).
 
    In contrast, the coordinates expected by GotoXY and returned by
    WhereX and WhereY are one-based. Passing (1,1) to GotoXY sends the
    cursor to the upper-left corner.