TShellTreeView.ObjectTypes property
Declaration
property ObjectTypes: ;Description
Not described here; this is what TCustomShellTreeView.ObjectTypes says of it:
Indicates the file system objects displayed using the control.
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.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
