[Overview][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
The base class for a tree view control used to display files, directories and other objects (such as devices) from the local file system.
Source position: shellctrls.pas line 60
type TCustomShellTreeView = class(TCustomTreeView) |
||
protected |
||
class procedure WSRegisterClass; override; |
||
procedure DoCreateNodeClass(); override; |
|
Performs actions needed to create a new tree node in the shell control. |
procedure Loaded; override; |
|
Performs actions needed when LCL component streaming has been completed. |
function CreateNode; override; |
|
Creates a new tree node for the shell control. |
function PopulateTreeNodeWithFiles(); |
|
Adds tree nodes for file system objects found starting at the specified node / path. |
procedure DoSelectionChanged; override; |
|
Performs actions needed when a new item is selected in the shell control. |
procedure DoAddItem(); |
|
Performs actions needed to add a new tree node to the shell control. |
function CanExpand(); override; |
|
Determines if the specified tree node can be expanded in the shell control. |
function DrawBuiltInIcon(); override; |
|
Draws the Shell Icon for the specified tree node. |
function GetBuiltinIconSize; override; |
|
Gets the size for a shell icon used in the control. |
function NodeHasChildren(); override; |
||
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
destructor Destroy; override; |
|
Destructor for the class instance. |
class function GetBasePath; |
|
Returns the initial path in the file system hierarchy for the platform. |
function GetRootPath; |
|
Returns the effective root value, returning the value of GetBasePath() of Root is empty or the Root property value otherwise. |
function GetPathFromNode(); |
|
Returns the path (including the file name) from the file system that a particular node represents. |
procedure PopulateWithBaseFiles; |
|
Fills the tree view when the Root directory is empty. |
procedure Refresh(); overload; |
|
Updates the tree view to display file system objects starting at the specified tree node. |
property UseBuiltinIcons: Boolean; [rw] |
|
Indicates if OS-provided icons are used for entries in the Shell control. |
property ObjectTypes: TObjectTypes; [rw] |
|
Indicates which objects should be shown in this control (for example if it should show files and directories or only directories). |
property ShellListView: TCustomShellListView; [rw] |
|
Connects this ShellTreeView to a ShellListView. |
property FileSortType: TFileSortType; [rw] |
|
Indicates how the items should be sorted in the tree. |
property Root: string; [rw] |
|
Indicates the directory to start showing the list of items. |
property Path: string; [rw] |
|
Path to the directory displayed in the shell control. |
property OnAddItem: TAddItemEvent; [rw] |
|
Event handler signalled when an item (tree node) is added to the shell control. |
property Items: TTreeNodes; |
|
The container with the TTreeNode instances used in the control. |
end; |
|
The base class for a tree view control used to display files, directories and other objects (such as devices) from the local file system. |
|
| | ||
|
Ancestor class for TTreeView. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
Implements a windowed control which can contain other child controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TCustomShellTreeView is a TCustomTreeView descendant that defines the base class used to display files, directories, and other objects (such as devices) from the local file system. TCustomShellTreeView provides a hierarchical tree view for the file system objects, and is used to navigate between items in the control.
TCustomShellTreeView extends the ancestor class with properties, methods, and events needed to access, maintain, and navigate file system objects in the tree. Applications should not create instances of TCustomShellTreeView; use the TShellTreeView class instead.
|
Implements a tree view control to display the files, directories and other objects (such as devices) from the local file system. |
|
|
Ancestor class for TTreeView. |