Vcl.Dialogs.TOpenDialog.OnSelectionChange
Delphi
property OnSelectionChange: TNotifyEvent read FOnSelectionChange write FOnSelectionChange;
C++
__property System::Classes::TNotifyEvent OnSelectionChange = {read=FOnSelectionChange, write=FOnSelectionChange};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TOpenDialog |
Description
Occurs when file names displayed in the dialog are changed.
The OnSelectionChange event occurs when the user does something to change the list displayed in the dialog. This can include opening the file-selection dialog box, highlighting a file or directory, selecting a new filter, selecting a new directory, or creating a new folder.
The newly selected files can be obtained by reading the value of the FileName or Files properties. The latter property should be consulted if the ofMultiSelect option is included in the dialog's Options.