PRB: SET SYSMENU ON Does Not Work During a READ Command

Last reviewed: June 27, 1995
Article ID: Q100448
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.5 and 2.5a

SYMPTOMS

In FoxPro for Windows, the command SET SYSMENU ON does not remove the _MSYSMENU menu while a READ command is in effect, as it does in FoxPro for MS-DOS.

CAUSE

The behavior of SET SYSMENU ON is not consistent with the Windows operating system. In Windows, the system menu bar, if there is one, is always displayed.

RESOLUTION

Adding the command HIDE MENU _MSYSMENU after the SET SYSMENU ON command will cause the menu bar to be removed. The menu bar will reappear if the ALT or F10 key is pressed.

MORE INFORMATION

The following code demonstrates this problem:

   SET SYSMENU ON
   @ 2,2 GET x DEFAULT 0
   READ CYCLE

The following code demonstrates the resolution to this problem:

   SET SYSMENU ON
   HIDE MENU _MSYSMENU
   @ 2,2 GET x DEFAULT 0
   READ CYCLE


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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

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