Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/103600

From BetaArchive Wiki
Knowledge Base

How Menu Events Are Handled by Windows & Macintosh

Article ID: 103600

Article Last Modified on 10/15/2003


  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft FoxPro 2.6a Standard Edition

This article was previously published under Q103600


When a menu popup is active, the operating environment's (Windows or Macintosh) event manager handles all events. This means that FoxPro will not be able to "see" certain events, such as ON KEY LABEL commands, so some code transported from FoxPro for MS-DOS may no longer work. For example, the following procedure will cause a wait window to display in FoxPro for MS-DOS but not in FoxPro for Windows:

  1. From the Command window, issue the follow command:


  2. Click any menu pad and leave the menu popup in the open state.
  3. When you press F8, the wait window will not appear in FoxPro for Windows because the key press was intercepted by the Windows event manager, not by FoxPro for Windows.

Note that the same behavior occurs for user-defined menus; it is not restricted only to the system menu.

NOTE: This behavior occurs in FoxPro for Macintosh when a menu popup is opened by using the shortcut key combination, for example pressing COMMAND+N to open the File, New menu dialog box.

Additional query words: FoxWin VFoxWin FoxMac 2.50 2.50a 2.50b 2.50c 2.60 access key hot

Keywords: KB103600