ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.OnAutoRefresh
Declaration
property OnAutoRefresh: TIEAutoRefreshEvent;
Description
Occurs whenever files are added or removed automatically when
AutoRefresh is enabled.
Parameter | Description |
Sender | This TImageEnFolderMView |
Action | One of: waAdded (new file was added to the folder), waRemoved (file was removed from the folder), waRenamedOld (a file of this name was renamed to a new one), waRenamedNew (a file in the folder was renamed to this name) |
Filename | The path of the file or folder that was added/removed |
procedure TMyForm.IEFolderMView1AutoRefresh(Sender: TObject; Action: TWatchAction; Filename: string);
begin
case Action of
waAdded : memLogging.Items.Add( 'Added: ' + Filename );
waRemoved : memLogging.Items.Add( 'Removed: ' + Filename );
waRenamedOld : memLogging.Items.Add( 'Renamed: ' + Filename );
waRenamedNew : memLogging.Items.Add( 'New name of renamed file: ' + Filename );
end;
end;