ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamSystemImageList Class

The TJamSystemImageList component provides the icons of the Windows shell in from of a Delphi ImageList descendant.

TJamSystemImageList
Syntax
Pascal
TJamSystemImageList = class(TCustomImageList);

Use this component to get access to the system image list of Windows. This can be useful if you want to display shell related information in a Delphi TListView or TTreeView. Then just place a TJamSystemImageList component on your form and assign it to the Images property of the TTreeView of TListView. Use the Size property to switch between small and large icons. GetIndexFromExtension and GetIndexFromFileName will return the icon number for a given extension or filename. Use the Draw and GetBitmap methods of Delphi`s TCustomImageList component to draw an icon somewhere on a TCanvas or to retrieve it as bitmap.

The following example will retrieve the large icon associated with Word documents as bitmap:

var index : Integer; bitmap: TBitmap; begin index := SystemImageList.GetIndexFromExtension('doc'); bitmap:= TBitmap.Create; SystemImageList.GetBitmap(index, bitmap); end;
 
Name 
Description 
 
Creates an instance of a TJamSystemImageList component.  
 
Name 
Description 
 
This is BitmapFromHBitmap, a member of class TJamSystemImageList. 
 
This is ConvertTo32BitImageList, a member of class TJamSystemImageList. 
 
Returns the type of the specified file.  
 
Returns the number of the standard folder icon.  
 
Returns a bitmap showing the icon for a given icon number.  
 
Returns the icon number for a given extension.  
 
Returns the icon number for a given filename.  
 
Returns the icon number for a given absolute ItemIdList.  
 
Returns the icon number for a given path.  
 
Returns the icon number for a given special folder.  
 
Returns the number of the standard icon for files with no known extension.  
 
Name 
Description 
 
This is BkColor, a member of class TJamSystemImageList. 
 
This is DrawingStyle, a member of class TJamSystemImageList. 
 
This is OnChange, a member of class TJamSystemImageList. 
 
Share images with the shell or make own copy.  
 
Size 
Switch between small and large icon for the ImageList.  
Copyright (c) 2011. All rights reserved.