Sign in Join
FPDoc Onlineexperiment

TCustomShellTreeView.Refresh procedure

Member of TCustomShellTreeViewpublicIn unit ShellCtrls

Updates the tree view to display file system objects starting at the specified tree node.

Declaration

pascal
procedure Refresh(ANode: TTreeNode); overload

Arguments

ANode

Tree node with the initial path displayed in the shell control; Nil defaults to the root directory.

Description

Refresh is an overloaded method in TCustomShellTreeView. It ensures that the tree node specified in ANode is selected and expanded to reveal its immediate first-level child nodes. When ANode is unassigned (Nil), the value in Root is updated for the tree view an associated list view control (when assigned). Setting the value in Root also populates the TShellTreeNode instances in the Items property.

Refresh is called when a new value is assigned to the ObjectTypes property.

See also

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