Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a modal form
Message
From
27/05/2023 13:03:20
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01686646
Message ID:
01686670
Views:
27
>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)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform