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 Procedure
◄Summary► ◄Details► ◄Example► ◄Back►
Arguments
FInvert Specifies vertical orientation of window
wx1, wy1 Specify the upper-left corner of the window
wx2, wy2 Specify the lower-right corner of the window
Description
The _SetWindow procedure defines a floating-point graphics window
bounded by the specified coordinates.
_SetWindow's FInvert argument specifies the vertical orientation
of the window. If FInvert is True, the window is inverted
vertically and y-axis values increase from screen bottom to top
(Cartesian coordinates). If FInvert is False, y-axis values
increase from screen top to bottom (like viewport coordinates).
Any window transformation done with _SetWindow applies only to
the viewport and not necessarily to the entire screen.
Note: If wx1 equals wx2 or wy1 equals wy2, the function fails.
It also fails if the current mode is not a graphics mode.
_GrStatus Returns
_GrInvalidParameter, _GrNotInProperMode, _GrParameterAltered