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

TCustomShellTreeView.FileSortType

Indicates how the items should be sorted in the tree.

Declaration

Source position: shellctrls.pas line 136

public property TCustomShellTreeView.FileSortType : TFileSortType
  read FFileSortType
  write SetFileSortType;

Description

FileSortType is a TFileSortType property used to indicate the sort order for tree nodes in the Items property. See TFileSortType for information about enumeration values and their meanings.

Changing the value in FileSortType causes the Items property to be cleared, and the tree nodes to be re-created for the Path when Root has been assigned. If Root contains an empty string (''), the PopulateWithBaseFiles method is called. Otherwise, the Path is updated to force the control to be reloaded.

No action other than setting the property value is performed in the method at design-time.

The value in FileSortType is used in the PopulateTreeNodeWithFiles method and passed as an argument to the internal GetFilesInDir procedure.

Remark: The value in FileSortType is not used in PopulateWithBaseFiles on Windows platforms. The entries are logical drive letters, and are processed in the order provided by the file system.

See also

TFileSortType

  

Represents sorting options for the items in a shell control.

EInvalidPath

  

Exception raised for an invalid path in shell controls.

TCustomShellTreeView.Items

  

The container with the TTreeNode instances for the control.

TCustomShellTreeView.Root

  

Indicates the directory to start showing the list of items.

TCustomShellTreeView.Path

  

Path to the directory displayed in the shell control.

TCustomShellTreeView.PopulateWithBaseFiles

  

Fills the tree view when the Root directory is empty.

TCustomShellTreeView.PopulateTreeNodeWithFiles

  

Adds tree nodes for file system objects found starting at the specified node / path.