ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamShellTree Class

A TJamShellTree control looks and behaves like the left pane of the Windows Explorer.

TJamShellTreeTJamShellTreeTJamShellTreeTJamShellTree
Syntax
Pascal
TJamShellTree = class(TCustomTreeView, IDropTarget, IDropSource, IJamShellControl, IIconViewer, ICheckBoxViewer);

A TJamShellTree displays the shell namespace in a tree. When the user right clicks on a folder, it will automatically show the context menu. TJamShellTree is derived from Delphi's TTreeView control, so you can use most of the properties and methods of this class.  

Use the SelectedFolder property to get the currently selected path, use the SpecialFolder property to check if a special folder like the Control Panel is currently selected. Usually a TJamShellTree component will be rooted the desktop folder, but you can use the RootedAt property to choose a different root folder. This control does not have a Font property, because it automatically uses the same font the Windows Explorer uses. Use the Popup property to merge your Delphi popup menus with the Shell Context menu. You can synchronize a TJamShellList.ShellLink with a JamShellTree by using the TJamShellList.ShellLink property.  

 

TJamShellTree Class
 
Name 
Description 
 
Creates an instance of a TJamShellTree component.  
 
Destroys the instance of a JamShellTree component.  
 
Name 
Description 
 
This is ApplyCheckState, a member of class ICheckBoxViewer. 
IIconViewer Interface
 
Name 
Description 
 
This is SetIcon, a member of class IIconViewer. 
IJamShellControl Interface
 
Name 
Description 
 
The TJamShellLink instance to which the current control connected. 
 
This method is called by the ShellLink instance if the currently selected item has changed. 
 
This method indicates that the callee should perform a full refresh of its contents. This will usually be an entrie reload of the displyed items. 
 
Setter method for the ShellLink property. 
 
GoUp 
This method indicates that the callee should go up one level and siplay the contents of the current folder's parent folder. 
 
This method is called by the ShellLink instance if the currently displayed folder has changed. 
 
This method indicates that the callee should select all item it currently displays. 
 
Getter method for the ShellLink property. 
 
This method indicates that the callee should perform a quick refresh of its contents. It is tolerable that changes in metadata are not detected. Removed and deleted items hsould be detected. The runtime of this method should be significantly faster thatn the one of the FullRefresh method.  
TJamShellTree Class
 
Name 
Description 
 
Specifies the delay between when a node is selected and when the OnChange event occurs.  
 
Forces the creation of links for dropped objects.  
 
History manages a set of paths, which have been visited.  
 
This is Images, a member of class TJamShellTree. 
 
Lists the individual nodes that appear in the tree view control.  
 
This is MultipleRoots, a member of class TJamShellTree. 
 
This is RootNode, a member of class TJamShellTree. 
 
Specifies the selected node in the tree view.  
 
This is SelectedItemIdList, a member of class TJamShellTree. 
 
Use this property to change the look and the objects displayed.  
 
This is StateImages, a member of class TJamShellTree. 
 
With this function you can add an object, which is hidden in the file system, to the tree.  
 
Creates a new directory in the given path.  
 
Refreshes the contents of the TJamShellTree.  
 
Returns the file path for a TJamShellTreeNode referenced by its index.  
 
Get the checkbox state of an item.  
 
This is GetNodeAt, a member of class TJamShellTree. 
 
GoUp 
Goes up one level in the file system structure.  
 
Executes a context menu command for the selected item.  
 
Checks if move is possible.  
 
Returns if the given item is a special folder like the Control Panel.  
 
Jump back and forward to directories, which you selected before.  
 
This is RefreshNode, a member of class TJamShellTree. 
 
This is Resort, a member of class TJamShellTree. 
 
Use this method to select a sub folder of the current selected folder.  
 
Show the context menu for the selected node.  
 
Performs a quick refresh of the contents of the TJamShellTree.  
TJamShellTree Class
 
Name 
Description 
 
This is Align, a member of class TJamShellTree. 
 
This is Anchors, a member of class TJamShellTree. 
 
Receives notifications about changes in the shell and performs refreshes automatically.  
 
Determines whether the list view displays a single line border.  
 
Turns on/off checkboxes for file and folder selection.  
 
Specifies the background color of the control.  
 
Color compressed files.  
 
Color encrypted files.  
 
This is Constraints, a member of class TJamShellTree. 
 
Use CopyMode to control the Drag'n'Drop behaviour.  
 
This is Ctl3D, a member of class TJamShellTree. 
 
Determines whether the control's image is rendered directly to the window or painted to an in-memory bitmap first.  
 
This is DragCursor, a member of class TJamShellTree. 
 
This is DragKind, a member of class TJamShellTree. 
 
This is DragMode, a member of class TJamShellTree. 
 
Controls whether the control responds to mouse, keyboard, and timer events.  
 
Can Expand a folder in the tree when selected.  
 
Use FileSystemOnly to determine, if only file system objects should be displayed.  
 
Allows you to filter files by filename patterns.  
 
Font 
Controls the attributes of text written on or in the control. Make sure to turn off UseSystemFont before editing this control! Otherwise the changes will not persist.  
 
Determines whether the list view gives a visual indication of which item is selected when focus shifts to another control.  
 
Specifies whether list items are highlighted when the mouse passes over them.  
 
This is Indent, a member of class TJamShellTree. 
 
Prevent the control to be filled on startup of the application.  
 
Allow drag and drop operations with the Explorer.  
 
Occurs if a new folder is added.  
 
This is OnAddition, a member of class TJamShellTree. 
 
This is OnAdvancedCustomDraw, a member of class TJamShellTree. 
 
This is OnAdvancedCustomDrawItem, a member of class TJamShellTree. 
 
This event occurs, before a context menu command is executed.  
 
Allows you to prevent unwanted shell drops.  
 
This is OnCanResize, a member of class TJamShellTree. 
 
Occurs whenever the selection has changed from one node to another.  
 
This is OnChanging, a member of class TJamShellTree. 
 
This event is fired, if the state of a checkbox was changed by the user.  
 
Occurs when the user clicks the control.  
 
This is OnCollapsed, a member of class TJamShellTree. 
 
This is OnCollapsing, a member of class TJamShellTree. 
 
This is OnCompare, a member of class TJamShellTree. 
 
This event occurs, if the user has selected a menu item of the shell context menu.  
 
This is OnContextPopup, a member of class TJamShellTree. 
 
This is OnCustomDraw, a member of class TJamShellTree. 
 
This is OnCustomDrawItem, a member of class TJamShellTree. 
 
Use the OnDblClick event to respond to mouse double-clicks.  
 
This is OnDeletion, a member of class TJamShellTree. 
 
This is OnDragDrop, a member of class TJamShellTree. 
 
This is OnDragOver, a member of class TJamShellTree. 
 
This event will be triggered, if the user cancels the rename of a folder and so the name remains unchanged.  
 
This is OnEdited, a member of class TJamShellTree. 
 
This is OnEditing, a member of class TJamShellTree. 
 
This is OnEndDock, a member of class TJamShellTree. 
 
This is OnEndDrag, a member of class TJamShellTree. 
 
This is OnEnter, a member of class TJamShellTree. 
 
This is OnExit, a member of class TJamShellTree. 
 
This is OnExpanded, a member of class TJamShellTree. 
 
This is OnExpanding, a member of class TJamShellTree. 
 
This is OnGetImageIndex, a member of class TJamShellTree. 
 
This is OnGetSelectedIndex, a member of class TJamShellTree. 
 
This is OnKeyDown, a member of class TJamShellTree. 
 
Occurs when key pressed.  
 
This is OnKeyUp, a member of class TJamShellTree. 
 
This is OnMouseDown, a member of class TJamShellTree. 
 
Occurs when the mouse pointer moves over the control.  
 
Occurs when the mouse pointer moves off from over the control.  
 
This is OnMouseMove, a member of class TJamShellTree. 
 
This is OnMouseUp, a member of class TJamShellTree. 
 
The OnOperation event occurs after the TJamShellTreeView executed a shell operation like pasting or dragging and dropping folders.  
 
This is OnStartDock, a member of class TJamShellTree. 
 
This is OnStartDrag, a member of class TJamShellTree. 
 
Event occurs when a folder is added or updated.  
 
This is ParentColor, a member of class TJamShellTree. 
 
This is ParentCtl3D, a member of class TJamShellTree. 
 
This is ParentDoubleBuffered, a member of class TJamShellTree. 
 
This is ParentFont, a member of class TJamShellTree. 
 
This is ParentShowHint, a member of class TJamShellTree. 
 
This is PopupMenu, a member of class TJamShellTree. 
 
Prevents operations that change the file system from being executed.  
 
Determines whether the Selected property returns nodes that are selected using the right mouse button.  
 
RootedAt determines the root folder of a TJamShellTree.  
 
Determines the root file system folder of a TJamShellTree.  
 
Gets or sets the selected folder.  
 
Automatically display the shell context menu.  
 
Connects this component to a JamShellLink in order to synchronize it to other shell controls.  
 
Specifies whether to display plus (+) and minus (-) buttons to the left side of each parent item.  
 
Show the context menu on the top of the supplied Delphi TPopupMenu.  
 
Allow Windows error messages.  
 
The property ShowFiles allows you to include the files in the TJamShellTree, similar to FrontPage 2000.  
 
With this property you can hide or show hidden folders like the recycle bin or some special directories in the Windows folder.  
 
This is ShowHint, a member of class TJamShellTree. 
 
Specifies whether to display the lines that link child nodes to their corresponding parent nodes.  
 
If set to false, the Network Neighborhood will not be shown. The default value is true.  
 
Determines whether the overlay icons are displayed.  
 
Show the Recycle Bin.  
 
Specifies whether lines connecting top-level nodes are displayed.  
 
Gets or sets the selected folder type.  
 
This is TabOrder, a member of class TJamShellTree. 
 
This is TabStop, a member of class TJamShellTree. 
 
This is ToolTips, a member of class TJamShellTree. 
 
Use the same Font as the Windows Explorer.  
 
Use the same styles as the Windows Explorer.  
 
The version number of the ShellBrower controls. 
 
Determines whether the component appears onscreen.  
Copyright (c) 2011. All rights reserved.