Sign in Join
FPDoc Onlineexperiment

TCustomComboBoxEx.AddItem procedure

Member of TCustomComboBoxExpublicIn unit ComboEx

Adds the specified item and object instance to the control.

Declaration

pascal
procedure AddItem(const Item: string; AnObject: TObject); override

Arguments

Item

Item added to the control.

AnObject

Object with data for the item added to the control.

Description

AddItem is a procedure used to create a new item in the extended combo-box control with the specified caption and object data. Item contains the caption assigned to the new TComboExItem instance. AnObject is an object with the data stored in the new TComboExItem instance.

AddItem calls Insert to create, update, and store the item in the ItemsEx property. The value in AnObject is stored to the Data property in the extended combo-box item appended to ItemsEx.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.