Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form auto close
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00618679
Message ID:
00619079
Vues:
20
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform