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

TCustomShellTreeView.ObjectTypes

Indicates the file system objects displayed using the control.

Declaration

Source position: shellctrls.pas line 138

public property TCustomShellTreeView.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

TCustomShellTreeView.Items

  

Contains the tree nodes used to represent the hierarchical tree structure for the tree view control.

TCustomShellTreeView.ExistsAndIsValid

  

Checks whether the specified path is a valid file system object and type for the tree view control.

TCustomShellTreeView.Path

  

Path to the directory displayed in the shell control.

TCustomShellTreeView.Root

  

Indicates the directory or path which is the top-level node in the tree view.

TCustomShellTreeView.UpdateView

  

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

TObjectTypes

  

Set type with values that indicate the visible objects in a Shell control.

TObjectType

  

Indicates which objects should be visible in a Shell control.

TCustomTreeView.Selected

  

The selected tree node in the control.

TCustomTreeView.TopItem

  

TopItem - the first visible node of the tree.


Version 4.0 Generated 2025-05-03 Home