How to Create a Window Larger Than the Desktop

Last reviewed: April 29, 1996
Article ID: Q96363
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY

The Screen Builder can create a window that is larger than the FoxPro desktop. To make the parts of the window that are currently off the screen visible, you must use the MOVE WINDOW command.

MORE INFORMATION

Instead of creating multiple screens and joining them together in a screen set, you can create a large screen (maximum 120 lines in length and 255 lines in width) in the Screen Builder. To move to a different part of the window, you can create one or more push buttons to access other parts of the window.

Example 1 -- To Move a Window ("Test") Vertically

Create a push button with the prompts Next and Previous. The variable for the push button is "choice". The VALID clause for this push button is as follows:

   DO CASE
     CASE choice = 1
       MOVE WINDOW test BY -25,0
   CASE choice = 2
       MOVE WINDOW test BY 25,0
   ENDCASE

Example 2 -- To Move a Window ("Test") Horizontally

Create a push button with the prompts Left and Right. The variable for the push button is "option". The VALID clause for this push button is as follows:

   DO CASE
     CASE option = 1
       MOVE WINDOW test BY 0,-76
     CASE option = 2
       MOVE WINDOW test by 0,76
   ENDCASE

REFERENCES

"Commands & Functions," version 2.0, page C3-534 "FoxPro Language Reference" version 2.5, page L3-682


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a Windows Screen
Move
KBCategory: kbprg
KBSubcategory: FxtoolSbuilder


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.