Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to hide command window?
Message
 
To
11/09/1997 14:23:52
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00049592
Message ID:
00049810
Views:
57
>My program begins with menu.spr .
>When I run it the command window remains open.
>How to hide or release it?
>Thanx in advance.
>
>Ed
Ed,

The presense of the command window means that there is no program running. When ever a program is running the command window is gone.

Your problem is this, the menu does not remain running, it loads, defines the menu, and ends. When the menu program ends the command window comes back.

To get rid of the command window you can do this;

Write a prg that is like this;

* Startup.prg
DO MyMenu.mpr
READ EVENTS
SET SYSMENU TO DEFAULT

Then in the menu give a Quit or Exit option that has this code in it;

CLEAR EVENTS

Now when you run it DO the prg instead of the menu. If this is a project then be sure to make the PRG the main item by highlighting it in the PM and then choosing Project - Set Main form the menu.
Previous
Reply
Map
View

Click here to load this message in the networking platform