Recent

Author Topic: How can I reload file list in TShellListView ?  (Read 4417 times)

marunguy

  • New Member
  • *
  • Posts: 23
How can I reload file list in TShellListView ?
« on: August 06, 2012, 09:56:41 am »
Hi,

How can I reload file list in TShellListView?

Some files are copied or deleted in TShellListView.Root folder by other app.
And I try to reload file list in TShellListView.
But I cannot reload.

TShellListView.PopulateWithRoot is the method to reload file list.
As this is protected method, I cannot call this method directly.

Below is my trick code. But, it seems very dirty.
Code: [Select]
  OrgRoot := Self.ShellListViewFile.Root;
  Self.ShellListViewFile.Root := '';
  Self.ShellListViewFile.Root := OrgRoot;

Is there simply way?

 

TinyPortal © 2005-2018