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.
setwindow
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The setwindow function defines a window bounded by the specified
coordinates. The arguments (<wx1>, <wy1>) specify the upper-left
corner of the window, and the arguments (<wx2>, <wy2>) specify the
lower-right corner of the window.
The <finvert> argument specifies the direction of the coordinates.
If <finvert> is .TRUE., the y axis increases from the screen bottom
to the screen top (Cartesian coordinates). If <finvert> is .FALSE.,
the y axis increases from the screen top to the screen bottom
(screen coordinates).
Any window transformation done with the setwindow function applies
only to the viewport and not to the entire screen.
If <wx1> equals <wx2> or <wy1> equals <wy2>, the function fails.
Note that this function does not affect the output of the font-
display routine outgtext.
See also: ◄Graphic Coordinate Systems►
Return Value
The function returns a nonzero value if successful. If the function
fails (e.g., if it is not in a graphics mode), it returns 0.
-♦-