Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to hide command window?
Message
 
À
11/09/1997 14:23:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00049592
Message ID:
00049810
Vues:
52
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform