PRB: Unable to Resize Main FoxPro Screen in Foundation READ

Last reviewed: April 29, 1996
Article ID: Q105836
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x

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


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.