ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TJamSystemImageList.GetFolderIconNumber

Returns the number of the standard folder icon.

Syntax
Pascal
class function GetFolderIconNumber(opened: Boolean = false): Integer;
Parameters 
Description 
opened: Boolean = false 
Optional parameter. Pass true if the number of the opened folder icon should be returned. 

Returns the number of the standard folder icon.

You can use the returned icon number if you need a folder icon, e.g. in a registry editor or for a file system folder where no other icon is available.

This example sets the icon of the root node in a TTreeView to the standard folder icon:

TreeView.Images := SystemImageList;
SystemImageList.Size := si_small;
TreeView.Items[0].ImageIndex := SystemImageList.GetFolderIconNumber;