ImageEn, unit iexFolderTree

TIEFileListBox.OnAutoRefresh

TIEFileListBox.OnAutoRefresh


Declaration

property OnAutoRefresh: TIEAutoRefreshEvent;


Description

Occurs whenever files are added or removed automatically when AutoRefresh is enabled.
Parameter Description
Sender This TIEFileListBox
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


Example

procedure TMyForm.IEFileListBox1AutoRefresh(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;