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

TCustomShellTreeView

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The base class for tree view control to display the files, directories and other objects (such as devices) from the file system structure

Declaration

Source position: shellctrls.pas line 55

type TCustomShellTreeView = class(TCustomTreeView) end;

protected

  procedure DoCreateNodeClass(); override;

  procedure Loaded; override;

  function CreateNode; override;

  function PopulateTreeNodeWithFiles();

  

  procedure DoSelectionChanged; override;

  function CanExpand(); override;

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  class function GetBasePath;

  

Returns the lowest possible path in the file system hierarchy. For example "/" in UNIXes or "\" in Windows CE

  function GetRootPath;

  

Returns the effective root value, returning the value of GetBasePath() of Root is empty or the Root property value otherwise

  class procedure GetFilesInDir();

  

Finds all files/directories directly inside a directory

  function GetPathFromNode();

  

Returns the path (including the file name) from the file system that a particular node prepresents

  procedure PopulateWithBaseFiles;

  procedure Refresh(); overload;

  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]

  

Can be utilized to connect 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]

  property Items: TTreeNodes;

Inheritance

TCustomShellTreeView

  

The base class for tree view control to display the files, directories and other objects (such as devices) from the file system structure

|

TCustomTreeView

  

TCustomTreeView - ancestor class for TTreeView

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.