Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>view define screen window</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VIEW                     Define Screen Window

 VIEW [[SCREEN][(x1,y1)-(x2,y2)[,[color][,[border]]]]]

    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.

 x1,y1,x2,y2    Corner coordinates of the viewport.

       color    If included, QuickBASIC fills the viewport with the
                specified color. Allowed values are 0 to 3 in medium
                resolution, 0-1 in high resolution.

      border    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.

   ----------------------------------------------------------------------

      Notes:    QuickBASIC sorts the coordinates x1, x2, y1, and y2, so
                that the lower value of x 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.

See Also: WINDOW

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson