OnBeginUpdate event
|
dcFolderListView component.
|
property OnBeginUpdate: TNotifyEvent;
|
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.
|
|
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.
|
{ 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;
|
OnEndUpdate event and Refresh method.
|