ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellControls.TJamShellCombo.InsertItem

Inserts a new item to the combo box.

Syntax
Pascal
function InsertItem(aIndex: Integer; const aCaption: UnicodeString; aIconNumber: Integer; aIndent: Integer; pidl: IItemIdList; Persistent: Boolean): TJamComboItem;
Parameters 
Description 
aIndex: Integer 
The index at which the new item should be added  
const aCaption: UnicodeString 
The cpation of the new item  
aIconNumber: Integer 
The icon index of the new item  
aIndent: Integer 
The indent of the new item, use 0 for no indent  
pidl: IItemIdList 
The ITemIdList of the new item  
Persistent: Boolean 
Pass true if the iotem should be persitent, pass False if the item should be removed again if a new current path is assigned  
aPath 
The path that corresponds to the new item  

TJamComboItem: The newly created item