FMX.Forms.TCommonCustomForm.CloseQuery

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CloseQuery: Boolean; virtual;

C++

virtual bool __fastcall CloseQuery();

Properties

Type Visibility Source Unit Parent
function public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm

Description

Close-attempt event dispatcher.

CloseQuery is called automatically when an attempt is made to close the form. CloseQuery can allow the form to close by returning True, or prevent the form from closing by returning False.

As implemented in TCommonCustomForm, CloseQuery calls the OnCloseQuery event handler, if it exists. If no such event handler exists, CloseQuery returns True.

See Also