Sign in Join
FPDoc Onlineexperiment

TCustomShellTreeView.ObjectTypes property

Member of TCustomShellTreeViewpublicIn unit ShellCtrls

Indicates the file system objects displayed using the control.

Declaration

pascal
property ObjectTypes: TObjectTypes read FObjectTypes write SetObjectTypes default [otFolders];

Description

ObjectTypes is a TObjectTypes property with the file system objects which can be stored in Items and displayed on the tree view control. It is a set type and can contains zero or more values from the TObjectType enumeration. When values are included in the set, they are enabled and displayed on the control.

otFolders
Enables and displays folders (directories).
otNonFolders
Enables and displays files and other file system entries which are not a folder.
otHidden
Enables and displays hidden directories and/or files on the tree view control.

The default value for the property is [otFolders].

Changing the values in the property causes the UpdateView method to be called to reload the Items displayed on the control. The currently Selected tree node is saved before the nodes are refreshed, and restored (when able) when Items has been reloaded. If the selected path has become invalid after the property change, an previous path (or the root node) becomes the Selected item on the control.

See also

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