[Overview][Classes][Procedures and functions][Index] |
Implements the event handler signalled to determine if the dialog can be closed.
Source position: extdlgs.pas line 157
protected procedure TCalculatorDialog.OnDialogCloseQuery( |
Sender: TObject; |
var CanClose: Boolean |
); |
Sender |
|
Object for the event notification. |
CanClose |
|
True when the dialog can be closed. |
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.
|
Displays the dialog and captures the result. |
|
|
Event handler signalled to determine if the dialog can be closed. |
lazarus-ccr.sourceforge.net |