ID: Q100448
The information in this article applies to:
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.
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.
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.
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
Last Reviewed: June 27, 1995