ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamFolderCombo.InsertItem Method

Adds an item to this control.

Syntax
Pascal
function InsertItem(aIndex: Integer; const aCaption: UnicodeString; aIndent: Integer; const pPath: Unicodestring; aIconNumber: Integer = -1): Integer; overload;
Parameters 
Description 
aIndex: Integer 
The index at which the item should be added. 
const aCaption: UnicodeString 
The caption which should be used for the item. 
aIndent: Integer 
The indent which should be used for the item. 
const pPath: Unicodestring 
The file system apth of the item. 
aIconNumber: Integer = -1 
The icon number in the system image list that should be used for displaying with this item, 

the index of the newly added item.

This function is used by SpaceObServer and should therefore remain public

Use this method to add a folder to the combo box. The folder may be displayed with a certain indent, the indent is not measured in pixel, it is measured in indent steps, like in a TreeView control.

Copyright (c) 2011. All rights reserved.