Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use a modeless form?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00501150
Message ID:
00501164
Views:
24
Larry, this works for forms, but... and I guess this a new concern. This does not work all that well for form classes
I dont know, but I found a way to get form classes work modeless. by creating a public var and then when I issue a omyform=create("myform") type command if the omyform var is made public, it does not clear just after it loads.

the reason I am writing, is that I dont know for sure if this is a good way of handling classforms... by creating public vars... it works, but something is telling me that is not, really a good solution.

Do you have any thoughts ?
Bob Lee



>>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.
In the beginning, there was a command prompt, and all was well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform