Download Now

    Reference TExplorerTree

    Declared in Codebot.Windows.Explorer.pas on line 359

    TExplorerTree hosts the Windows namespace tree control, the navigation pane used by Windows Explorer
      TExplorerTree = class(TExplorerControl, IComponentBindingClient, INameSpaceTreeControlEvents, IShellItemFilter)
      protected
        procedure CreateWnd; override;
        procedure DestroyWnd; override;
        procedure Resize; override;
      public
        { Create a new explorer tree }
        constructor Create(AOwner: TComponent); override;
        destructor Destroy; override;
        { Collapse all the items }
        procedure CollapseAll;
        { Scroll the tree so an item is visible }
        procedure EnsureVisible(const ItemPath: string);
        { Get the paths of the checked items which the tree has loaded }
        procedure GetCheckedItems(Strings: TStrings);
        { Returns the path of the item at a point of the control, or an empty string
          if there is none }
        function ItemAtPos(X, Y: Integer): string;
        { Build the tree again }
        procedure Refresh; reintroduce;
        { The checkbox state of an item when the toCheckBoxes option is set }
        property Checked[const ItemPath: string]: Boolean read GetChecked write SetChecked;
        { The namespace tree control object, or nil if the window is not created }
        property Control: INameSpaceTreeControl read FControl;
        { The expanded state of an item }
        property Expanded[const ItemPath: string]: Boolean read GetExpanded write SetExpanded;
        { The selected folder }
        property Path: string read GetPath write SetPath;
      published
        { The styles of the tree. Changing them recreates the tree }
        property Options: TExplorerTreeOptions read FOptions write SetOptions default DefaultTreeOptions;
        { The folder at the top of the tree, which starts expanded. When empty it is
          the desktop }
        property Root: string read FRoot write SetRoot;
        { More folders shown at the top level after Root, such as This PC and
          Network }
        property Roots: TStrings read FRoots write SetRoots;
        { Show files as well as folders }
        property ShowFiles: Boolean read FShowFiles write SetShowFiles default False;
        { Invoked when the selected item changes }
        property OnChange: TNotifyEvent read FOnChange write FOnChange;
        { Invoked after the user changes the checkbox of an item }
        property OnCheck: TExplorerCheckEvent read FOnCheck write FOnCheck;
        { Invoked after a folder is expanded }
        property OnExpanded: TExplorerFolderEvent read FOnExpanded write FOnExpanded;
        { Invoked before a folder is expanded. Set Allow to false to stop it }
        property OnExpanding: TExplorerPathEvent read FOnExpanding write FOnExpanding;
        { Invoked for each item of the tree. Set Allow to false to hide the item }
        property OnIncludeItem: TExplorerPathEvent read FOnIncludeItem write FOnIncludeItem;
        property Align;
        property Anchors;
        property BorderSpacing;
        property BorderStyle default bsNone;
        property Constraints;
        property DragCursor;
        property Enabled;
        property Hint;
        property ParentShowHint;
        property PopupMenu;
        property ShowHint;
        property TabOrder;
        property TabStop default True;
        property Visible;
        property OnChangeBounds;
        property OnClick;
        property OnContextPopup;
        property OnDblClick;
        property OnDragDrop;
        property OnDragOver;
        property OnEnter;
        property OnExit;
        property OnKeyDown;
        property OnKeyPress;
        property OnKeyUp;
        property OnMouseDown;
        property OnMouseMove;
        property OnMouseUp;
        property OnMouseWheel;
        property OnMouseWheelDown;
        property OnMouseWheelUp;
        property OnResize;
        property OnShowHint;
        property OnUTF8KeyPress;
      end;

    See also

    IComponentBindingClient in Codebot.Binding.pas