PRB: Printer Setup Is Disabled When Using _MFI_SETUP in MenuLast reviewed: April 30, 1996Article ID: Q126583 |
The information in this article applies to:
SYMPTOMSThe Printer Setup option of your menu is disabled.
CAUSEThe 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.
WORKAROUNDUse one of the following three workarounds:
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorCreate 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 ReadWhile running the program, you can access the menu pad labeled SYSTEM, but the Printer Setup option is disabled.
|
Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b 2.60
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |