Icon TCloseQueryEvent

Unit: WebCtrls

TCloseQueryEvent = function (Sender: TObject): Boolean of object

Available In: Client Applications

The TCloseQueryEvent type is used by the OnCloseQuery event for the TPanel, TForm, and TDialog components to intercept the closing of the control.

Return True as the result of the event to allow the close to continue, or False to prevent the control from closing.
Image