Microsoft KB Archive/96363

{| = How to Create a Window Larger Than the Desktop =
 * width="100%"|

ID: Q96363

2.00 2.50 2.50a | 2.50 2.50a

MS-DOS         | WINDOWS kbprg 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 (&quot;Test&quot;) Vertically
Create a push button with the prompts Next and Previous. The variable for the push button is &quot;choice&quot;. 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 (&quot;Test&quot;) Horizontally
Create a push button with the prompts Left and Right. The variable for the push button is &quot;option&quot;. 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