folderlistview OnEndUpdate event
Return to Introduction  Previous page  Next page
Applies to
dcFolderListView component.  

Declaration
property OnEndUpdate: TNotifyEvent;  

Description
The OnEndUpdate event occurs when the dcFolderListView has finished process of scanning for files witnin the current folder and has sucessfully refreshed itself.  
 
tip If the directory contains too many files, the updating process can take rather long time. You can hook the OnBeginUpdate and OnEndUpdate events to amuse users by something while the FolderListView scans directory for files.  

Example (shows the avi movie while the dcFolderListView refresh the directory contents)
{ Animate1.CommonAVI := aviFindFolder }  
procedure TForm1.dcFolderListView1BeginUpdate(Sender: TObject);  
begin  
  Animate1.Active := True;  
  Animate1.Visible := True;  
end;  
 
procedure TForm1.dcFolderListView1EndUpdate(Sender: TObject);  
begin  
  Animate1.Visible := False;  
  Animate1.Active := False;  
end;  

See also
OnBeginUpdate event and Refresh method.  
File not found.