ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamShellTree.SelectedFolder Property

Gets or sets the selected folder.

Syntax
Pascal
property SelectedFolder: UnicodeString;

Use SelectedFolder to get or set the folder, which is currently selected in the TJamShellTree. If the currently selected folder is not a file system folder, SelectedFolder returns an empty string and you should use the SpecialFolder property to get the type of this folder. If the given folder doesn't exist or cannot be selected, an exception will be raised.

To check, if the folder has been successfully selected, you can use code like this:

try ShellTree.SelectedFolder := aPath; except ShowMessage('Not Found: ' + aPath); end;
Copyright (c) 2011. All rights reserved.