PRB: Unable to Resize Main FoxPro Screen in Foundation READ

ID: Q105836

2.5x 2.6x WINDOWS kbprg kbprb

The information in this article applies to:

SYMPTOMS

During a foundation READ, the main FoxPro screen cannot be resized.

NOTE: Under Visual FoxPro for Windows, the main FoxPro screen can be resized.

CAUSE

This behavior is by design.

When a Foundation READ is used and no other window is defined and active, the main FoxPro screen becomes the active READ window for the foundation read and cannot be changed.

RESOLUTION

You can make the main FoxPro screen resizeable by defining and activating another window just prior to the foundation READ. This window can be defined with no border and the same color scheme as the FoxPro desktop so that it is not visible.

To create a menu and a program that will allow the main FoxPro screen to be resized despite the fact that a foundation READ is in effect, do the following:

1. Create a new menu with one menu option: Quit.

2. Change RESULT to PROCEDURE for this menu option.

3. Type the following code in the procedure for the Quit menu

   option:

      m.quit=.T.
      CLEAR READ ALL
      SET SYSMENU TO DEFAULT
      RELEASE WINDOW fndation

4. Save the menu as MYMENU.MNX and generate the .MPR code.

5. Create a new program with the following code:

      *** Begin Sample Code
      m.quit=.F.
      DO mymenu.mpr
      DEFINE WINDOW fndation FROM 0,0 TO 5,5 NONE
      ACTIVATE WINDOW fndation
      READ VALID m.quit
      *** End of Code

6. Run the above program and note that the main FoxPro screen can now be
   resized even though the foundation READ is in effect.

Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a re-size desktop KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
Keywords          : FxprgGeneral 
Version           : 2.5x 2.6x
Platform          : WINDOWS

Last Reviewed: April 30, 1996