FMX.Dialogs.TOpenDialog.DoCanClose
Delphi
function DoCanClose: Boolean; dynamic;
C++
DYNAMIC bool __fastcall DoCanClose(void);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | FMX.Dialogs.pas FMX.Dialogs.hpp |
FMX.Dialogs | TOpenDialog |
Description
OnCanClose event dispatcher.
DoCanClose is called automatically when the user closes the dialog.
DoCanClose returns True (by default) to allow closing the dialog or False to prevent the dialog from closing.
DoCanClose executes the handler of the OnCanClose event if defined and allows you to set the CanClose parameter of the OnCanClose event handler to True or False. DoCanClose returns the value that CanClose has after the event handler finishes.