FMX.Forms.TCloseEvent
C++
typedef void __fastcall (__closure *TCloseEvent)(System::TObject* Sender, System::Uitypes::TCloseAction &Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | FMX.Forms.hpp | FMX.Forms | FMX.Forms |
Description
TCloseEvent is the type of a FireMonkey form's OnClose event handler.
The TCloseEvent type points to a method that handles the closing of a FireMonkey form. The Sender
parameter is the form that the user tried to close. The Action
parameter returns the action you want the form to take when it closes.
Setting Action
controls how the form responds to the attempt to close it, as shown below:
Value | Meaning |
---|---|
|
The form is not allowed to close, so nothing happens. |
|
The form is not closed, but just hidden. Your application can still access a hidden form. |
|
The form is closed and all allocated memory for the form is freed. |
|
The form is minimized, rather than closed. |