[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 106

public property TCustomShellTreeView.ObjectTypes : TObjectTypes
  read FObjectTypes
  write SetObjectTypes;

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.
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.

Changing the values in the property causes the Refresh method to be called to reload the Items for the control starting at the root directory. The currently Selected tree node is saved before the nodes are refreshed, and restored when Items has been reloaded. An exception raised when the path no longer exists in the tree nodes is handled and ignored in the method.

See also

TCustomShellTreeView.ObjectTypes

  

Indicates the file system objects displayed using the control.

TCustomShellTreeView.Items

  

The container with the TTreeNode instances for the control.

TCustomShellTreeView.Path

  

Path to the directory displayed in the shell control.

TCustomShellTreeView.Root

  

Indicates the directory to start showing the list of items.

TCustomShellTreeView.Refresh

  

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

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.