Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a modal form
Message
 
 
À
27/05/2023 13:03:20
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01686646
Message ID:
01686672
Vues:
20
>>Sorry I am not getting it. Again, in my case - now - the popup form is MODELESS. As soon as the code in this, POPUP MODELESS form, calls .hide(), the method DEACTIVATE is fired. And therefore, the .tag is gone. That is, as soon as hide() fires, the code (in the debugger) goes to the READ EVENTS line.
>
>DEACTIVATE means the form is not active, not closed. The form only closes, when you fire something closing the form in DEACTIVATE.
>Try:
>
>Public poMyForm
>poMyForm = Createobject("myform")
>poMyForm.Visible = .T.
>
>Define Class myform As Form
>	AutoCenter = .T.
>	AllowOutput = .F.
>
>	Procedure Activate
>		?'activated'
>	Endproc
>
>	Procedure Deactivate
>		?'deactivated'
>	Endproc
>Enddefine
>
>
>Update: Run the code, click on _screen, click on form. (Do not click Toolbars or Menu, this is different)

I think I found my problem. I added NODEFAULT to the UNLOAD method of the popup form.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform