PRB: Cannot Disable the System Menu While Running a Form (136672)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
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.
Modification Type: | Major | Last Reviewed: | 2/15/2000 |
---|
Keywords: | KB136672 |
---|
|