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

Declaration
property OnBeginUpdate: TNotifyEvent;  

Description
The OnBeginUpdate event occurs when the dcFolderListView needs to update (refresh) the list items which shows the content of directory, and is about to scan the directory for files to update 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
OnEndUpdate event and Refresh method.