FMX.Forms.TCloseEvent

From RAD Studio API Documentation
Jump to: navigation, search

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

caNone

The form is not allowed to close, so nothing happens.

caHide

The form is not closed, but just hidden. Your application can still access a hidden form.

caFree

The form is closed and all allocated memory for the form is freed.

caMinimize

The form is minimized, rather than closed.


See Also