TCommonDialog.DoCanClose procedure
Performs actions needed to determine if the dialog can be closed.
Declaration
procedure DoCanClose(var CanClose: Boolean); virtualArguments
CanClose | True if the OnCanClose event handler determines the dialog can be closed. |
Description
DoCanClose is a method which determines if the dialog can be
closed. It updates an internal flag which indicates the method has been
called, and signals the
OnCanClose event handler (when assigned
and supported for the platform).
Use the OnCanClose to implement any required logic to determine if the dialog can actually be closed. The value in the CanClose argument is updated in the event handler.
DoCanClose is called from the DoExecute method when the widgetset
class has attempted to close the dialog.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
