ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TShellBrowser.IconNumber

Use IconNumber to get the number of the icon for the current object.

Syntax
Pascal
property IconNumber: Integer;

IconNumber contains the number of the icon in the system image list. Use the component TJamSystemImageList to get access to the image list of Windows. You can use IconNumber to set the ImageIndex property of a TTreeNode or a TListItem. For a folder object, the property SelectedIconNumber will contain the number of the 'opened' icon.

These lines show how to fill a listview, so that it looks like an Explorer window:

While ShellBrowser.Next do begin
  Item := ListView.Items.Add;
  Item.Caption    := ShellBrowser.GetShellObjectName;
  Item.ImageIndex := ShellBrowser.IconNumber;
end;