ON KEY LABEL in FoxPro for MS-DOS Active in System MenuID: Q119897 The information in this article applies to:
SUMMARYThe online Help system and page L3-708 in the "Language Reference" manual state that:
This statement is true in FoxPro for Windows and FoxPro for Macintosh.
However, ON KEY LABEL assignments ARE in effect in FoxPro for MS-DOS during
these situations.
MORE INFORMATIONWhen a system menu popup is in the open state in FoxPro for Windows or Macintosh, FoxPro does not trap for the ON KEY LABEL event because any pending events will go through the Windows or Macintosh event handler. In MS-DOS, FoxPro's event handler handles all events (including ON KEY LABEL events) when the popup is in the open state. This is considered correct behavior because of the environment in which the program is working.
Steps to Reproduce Behavior1. Start FoxPro for MS-DOS. 2. In the Command window, type
3. Click a menu pad and then press F5. The ON KEY LABEL event will
Workaround for MS-DOS System Menu1. In the Command window, type:
2. Create a .PRG file called MYCODE. Add the following code to the file,
Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 2.60a docerr
KBCategory: kbprg kbdocerr
KBSubcategory:
|
|
Last Reviewed: April 18, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |