How to Suppress the Text Menu in FoxPro for Windows

ID: Q102070

2.50 2.50a WINDOWS kbprg

The information in this article applies to:

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

Keywords          : FxtoolGeneral 
Version           : 2.50 2.50a
Platform          : WINDOWS

Last Reviewed: April 30, 1996