ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamSystemImageList.GetFolderIconNumber Method

Returns the number of the standard folder icon.

Syntax
Pascal
class function GetFolderIconNumber(opened: Boolean = false): Integer;

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;
Copyright (c) 2011. All rights reserved.