Unit 'ExtDlgs' Package
[Overview][Classes][Procedures and functions][Index] [#lcl]

TCalculatorDialog.OnDialogCloseQuery

Implements the event handler signalled to determine if the dialog can be closed.

Declaration

Source position: extdlgs.pas line 157

protected procedure TCalculatorDialog.OnDialogCloseQuery(

  Sender: TObject;

  var CanClose: Boolean

);

Arguments

Sender

  

Object for the event notification.

CanClose

  

True when the dialog can be closed.

Description

OnDialogCloseQuery implements the event handler signalled to determine if the dialog can be closed. OnDialogCloseQuery sets the value in the UserChoice property to the modal result returned by the dialog form in DlgForm. It calls DoCanClose to signal the OnCanClose event handler (when assigned).

OnDialogCloseQuery is assigned as the OnCloseQuery event handler for the form in DlgForm in the Execute method.

See also

TCommonDialog.Execute

  

Displays the dialog and captures the result.

TCommonDialog.OnCanClose

  

Event handler signalled to determine if the dialog can be closed.