ShellBrowser Delphi Components Documentation
|
Returns if the given item is a special folder like the Control Panel.
function IsSpecialObject(Item: TJamShellListItem): TJamShellFolder; overload;
Parameters |
Description |
Item: TJamShellListItem |
The item that should be checked. |
The special folder of the given item.
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 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;