Sign in Join
FPDoc Onlineexperiment

TCustomShellListView.UpdateView procedure

Member of TCustomShellListViewpublicIn unit ShellCtrls

Reloads the contents for the list view control and restores the Selected item.

Declaration

pascal
procedure UpdateView

Description

UpdateView is a method used to repopulate the Items for the control. It ensures that the Selected entry is captured and restored (if assigned and still available) when the file system entries have been reloaded in the method.

UpdateView calls Clear to discard existing entries in Items, and PopulateWithRoot to recreate the entries starting at the path in Root. FindCaption is called to locate and restore the value in Selected.

UpdateView ensures that an associated ShellTreeView control calls its UpdateView method to synchronize the contents for the controls. Root is used as the starting directory for the update.

Added in LCL version 4.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.