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