Knowledge Base

PRB: Printer Setup Is Disabled When Using _MFI_SETUP in Menu

Article ID: 126583

Article Last Modified on 12/3/2003


APPLIES TO


This article was previously published under Q126583

SYMPTOMS

The Printer Setup option of your menu is disabled.

CAUSE

The system menu option "_MFI_SETUP" exists as a menu command in your menu. When there is no text to be printed in the active window, FoxPro disables the Printer Setup option menu choice, and because the _MFI_SETUP variable is context-aware, it is enabled and disabled accordingly.

WORKAROUND

Use one of the following three workarounds:

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

Create and run a program containing the following code:
   **---------------------------------------------------------**
   ** Place this code in a file called MENU.MPR               **
   **---------------------------------------------------------**
   SET SYSMENU TO
   SET SYSMENU AUTOMATIC
   DEFINE PAD testpad OF _msysmenu PROMPT "System" COLOR SCHEME 3
   ON PAD testpad OF _msysmenu ACTIVATE POPUP SYSTEM
   DEFINE POPUP SYSTEM MARGIN RELATIVE SHADOW COLOR SCHEME 4
   DEFINE BAR _mfi_setup OF SYSTEM PROMPT "Printer Setup..."

   **--------------------------------------------------------**
   ** Place this code in a file called MENU.PRG              **
   **--------------------------------------------------------**
   Terminate = .F.
   ON KEY LABEL f5 Do Stopit
   DO menu.mpr
   READ VALID terminate
   SET SYSMENU TO DEFAULT

   Procedure Stopit
   STORE .T. TO terminate
   clear Read
				
While running the program, you can access the menu pad labeled SYSTEM, but the Printer Setup option is disabled.

Additional query words: VFoxWin FoxWin 2.50 _MFI_SETUP PDSETUP print menu setup exe disabled

Keywords: kbprb KB126583