dos_compilers/Microsoft QuickBASIC v3/manual/ng32510.html
2024-07-01 13:00:14 -07:00

63 lines
2.5 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng321ab.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng32b68.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>VIEW Define Screen Window</B>
<B>VIEW</B> [[SCREEN][(<U>x1</U>,<U>y1</U>)-(<U>x2</U>,<U>y2</U>)[,[<U>color</U>][,[<U>border</U>]]]]]
Defines a screen subset, or viewport.
SCREEN If omitted, the coordinates of all subsequent graphics
statements are measured relative to the defined viewport,
whose upper left corner becomes 0,0. If included, 0,0 is
still the upper left corner of the screen, but only those
points that fall within the defined viewport are visible.
<U>x1</U>,<U>y1</U>,<U>x2</U>,<U>y2</U> Corner coordinates of the viewport.
<U>colo</U>r If included, QuickBASIC fills the viewport with the
specified color. Allowed values are 0 to 3 in medium
resolution, 0-1 in high resolution.
<U>borde</U>r If included, QuickBASIC draws a border, in a specified
color, around the defined viewport. Allowed values are 0
to 3 in medium resolution, 0-1 in high resolution.
----------------------------------------------------------------------
<B>Notes:</B> QuickBASIC sorts the coordinates <U>x1</U>, <U>x2</U>, <U>y1</U>, and <U>y2</U>, so
that the lower value of <U>x</U> and the lower value of y specify
the upper left corner, regardless of how the coordinates
are presented; i.e., VIEW (280,120)-(140,180) would be
equivalent to VIEW (140,120)-(280,180).
VIEW with no argument redefines the viewport to the full
screen.
Multiple viewports may be defined, but only the most
recent definition is active.
A defined viewport is disabled by a RUN statement or a
change in SCREEN attributes.
With a viewport in effect, CLS clears only the viewport,
not the entire screen.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ng33e32.html">WINDOW</A>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>