FMX.Forms.TCustomPopupForm.CloseQuery

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CloseQuery: Boolean; override;

C++

virtual bool __fastcall CloseQuery();

Properties

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

Description

Close-attempt event dispatcher.

FMX.Forms.TCustomPopupForm.CloseQuery inherits from FMX.Forms.TCommonCustomForm.CloseQuery. All content below this line refers to FMX.Forms.TCommonCustomForm.CloseQuery.

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