How to Create a Window Larger Than the Desktop

ID: Q96363

2.00 2.50 2.50a | 2.50 2.50a

MS-DOS          | WINDOWS
kbprg

The information in this article applies to:

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

Keywords          : FxtoolSbuilder 
Version           : 2.00 2.50 2.50a | 2.50 2.50a
Platform          : MS-DOS WINDOWS

Last Reviewed: April 30, 1996