Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use a modeless form?
Message
 
 
To
27/04/2001 19:43:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00501150
Message ID:
00501153
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform