ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamShellList.IsSpecialObject Method (TJamShellListItem)

Returns if the given item is a special folder like the Control Panel.

Syntax
Pascal
function IsSpecialObject(Item: TJamShellListItem): TJamShellFolder; overload;

The IsSpecialObject function allows you to query, if a certain item in the TJamShellList is a special shell folder. One of the TJamShellFolder constants will be returned. The property returns SF_UNKNOWN if the current folder is no special folder.

The following example shows the Windows Explorer for all non file system folders and an own file manager for all file system folders:

with ShellList do begin if not Assigned(Selected) then exit; if IsSpecialObject(Selected) != SF_FILESYSTEM then InvokeCommandOnSelected('open') else ShowMyFileManager(GetFullPath(Selected)); end;
Copyright (c) 2011. All rights reserved.