How to Suppress the Text Menu in FoxPro for Windows

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

SUMMARY

Because it is an internal FoxPro menu, the Text menu automatically appears on the system menu bar whenever the Command window or an edit window is active.

WORKAROUNDS

To prevent the Text menu from automatically appearing on the system menu bar, use one of the following workarounds.

Workaround 1

If you are using FoxPro 2.5a for Windows, you can use the new NOMENU clause to suppress the Text menu on the MODIFY FILE and MODIFY COMMAND commands.

Workaround 2

Include a foundation READ after the DO <filename>.MPR command. The foundation READ keeps the Command window from being active; therefore, the Text menu does not appear on the system menu bar.

For an example of a foundation READ, refer to the EX1.PRG file in the FOXPROW\GOODIES\FNDATION\PRGS subdirectory.

NOTE: The Text menu will appear if an option is selected from the system menu bar that issues the MODIFY FILE/COMMAND/MEMO <filename> command.

Workaround 3

  1. Create a new menu and add a pad to the menu.

  2. From the Menu menu, choose General Options. Under Location, select Append.

  3. In the Prompt text box, press the SPACEBAR once.

  4. In the Result combo box, select Pad Name.

  5. In the untitled text box, type:

          _msm_text
    

  6. Click the button under Options, then select the Skip For check box in the Prompt Options dialog box. In the Expression Builder dialog box, type the following:

          .t.
    

  7. Save and generate the menu.

  8. Run the .MPR file.

  9. In the Command window, type the following command:

          MODIFY FILE myfile
    

The Text menu should no longer appear.


Additional reference words: FoxWin 2.50 2.50a missing memo field
suppressing disable
KBCategory: kbprg
KBSubcategory: FxtoolGeneral


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.