Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form auto close
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00618679
Message ID:
00619079
Views:
19
>Eric,
>
>>I have a modal form. I want to set it up so that when the user clicks anywhere ouside that from it automatically closes. Can I do this? If so, how? I tried to use the deactivate and lostfocus events of the form, but it didnt work.
>
>
>The method would work with a non-modal form.
>If You would make it non-modal and put Thisform.release in the deactivate-event that should be "like" modal and behave as you want.
>
>HTH

This would work if I had the form pre-created. Im creating the form from a class and when I execute the .show method of the form object it shows the from. If the from is not modal, execution keeps going in the next few lines i read some data from the form's objects and then make a call to realese the form.

In the form itself I have calls to .hide which return exuecution to the code that called the .show method.

Does this make sense?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform