[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ShellCtrls' (#lcl)

TCustomShellListView.UpdateView

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

Declaration

Source position: shellctrls.pas line 294

public procedure TCustomShellListView.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.

Version info

Added in LCL version 4.0.

See also

TCustomShellListView.Root

  

Indicates the initial directory path whose objects are displayed in the control.

TCustomShellListView.PopulateWithRoot

  

Fills the list view with file system information for the directory in Root.

TCustomShellTreeView.UpdateView

  

Reloads the nodes for tree view control and synchronizes an associated ShellListView control.

TCustomListView.Clear

  

Clears the Items for the list view.

TCustomListView.Selected

  

Contains the selected list item in the list view control.


Version 4.0 Generated 2025-05-03 Home