Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I use a modeless form?
Message
 
 
À
27/04/2001 19:43:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00501150
Message ID:
00501153
Vues:
21
>Whenever I make a form modeless it disappears immediately. If the app is controlled by a modeless form class, it quits
>immediately. If I make it modal, the form waits for user input, which is what I want. But I want to be able to open other forms
>at the same time. How can I make a modeless form wait for input?

You need to put your application into a wait state. In your main program, add a READ EVENTS to do this. Ex.
* some setup code
do mymain.mpr
read events

* do some clean up code here
From your main menu, you can launch any of your forms. You can also set up a menu option to issue a CLEAR EVENTS to exit the wait state and proceed to the next line after the READ EVENTS.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform