PRB: Cannot Disable the System Menu While Running a Form
Article ID: 136672
Article Last Modified on 2/15/2000
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
This article was previously published under Q136672
SYMPTOMS
When you issue the command SET SYSMENU OFF to turn off the system menus
from, for example, the Load event of a form, the menu goes away for a short
moment but then comes right back again.
CAUSE
When the program finishes executing, there are no more wait states. Even
though the form is still up on the screen, control has transferred to the
Command window. The system menu is automatically turned on when the Command
window is active. That's why the menu comes back after loading the form.
RESOLUTION
Run the form from a program and include READ EVENTS after the DO FORM
command. To turn the menus off, you can execute SET SYSMENU OFF before the
DO FORM command in the program, or include it in the Load event of the
form. This will keep the program active and hide the system menu until you
use the CLEAR EVENTS or SET SYSMENU ON command.
NOTE: This was called a Foundation READ in FoxPro version 2.x.
STATUS
This behavior is by design.
Additional query words: VFoxWin
Keywords: KB136672