Microsoft KB Archive/103604

From BetaArchive Wiki

DEACTIVATE MENU BAR ALL Doesn't Work w/ "Bar Type" Menus

ID: Q103604

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

The DEACTIVATE MENU BAR ALL command does not deactivate menu bars on "bar type" menus because the intended purpose of bar-type menus is to have only ONE menu bar up at a time; therefore, it is unnecessary to deactivate all menu bars with one command. For example, the following code does not deactivate the menu bar:

   DEFINE MENU test BAR AT LINE 1
   DEFINE PAD test OF test PROMPT "test"
   ACTIVATE MENU test NOWAIT
   DEACTIVATE MENU BAR ALL

To deactivate the menu bar, use the following command instead:

   DEACTIVATE MENU test

Additional reference words: FoxDos FoxWin 2.50 2.50a KBCategory: kbprg KBSubcategory: FxprgGeneral


Last Reviewed: June 27, 1995
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.