advr.hlp (Topic list)
WINDOW Statement Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 WINDOW [[SCREEN] (x1!,y1!)-(x2!,y2!)]
 
 Usage Notes
   ■ References to the WINDOW statement are not allowed with forms and cause
     Visual Basic to generate the error message, "Invalid when forms are
     showing." Use the HIDE method to hide any visible forms or controls
     before executing this statement. See: HIDE Method
 
   ■ Using the WINDOW statement with no arguments disables the logical
     coordinate system.
 
   ■ Use the VIEW statement to change the size of the viewport.
     See: VIEW Statement
 
   ■ If a WINDOW statement without a SCREEN argument appears in a program
     before the PUT statement, the coordinates refer to the lower-left corner
     of the rectangle. See: PUT Statement (Graphics)
 
   ■ The WINDOW statement allows the user to create a customized coordinate
     system to draw lines, graphs, or objects without being constrained by
     the graphics viewport physical coordinate values and orientation.
 
   ■ WINDOW defines a coordinate system that is mapped to the physical
     coordinates of the viewport. All subsequent graphics statements use
     the window coordinates and are displayed within the current
     viewport. The viewport may be the entire screen or a clipping area
     defined in physical coordinates by the VIEW statement.
 
   ■ The window coordinate system is disabled by:
     • A WINDOW statement with no arguments
     • A RUN statement
     See: RUN Statement