[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ComboEx' (#lcl)

TComboExItems

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a collection for the items added to TCustomComboBoxEx.

Declaration

Source position: comboex.pas line 119

type TComboExItems = class(TListControlItems)

protected

  FAddingOrDeletingItem: Boolean;

  

Tracks the add or delete status for the collection.

  procedure Notify(); override;

  

Performs component notifications when a collection item is added to or removed from the Collection.

  procedure Update(); override;

  

Updates the collection when the specified item has been changed.

public

  function Add;

  

Adds a new item to the collection.

  function AddItem();

  

Adds a new item with the specified values to the collection.

  function Insert();

  

Inserts a collection item at the specified position in the collection.

  property ComboItems []: TComboExItem; default; [r]

  

Provides indexed access to the items in the collection.

end;

Inheritance

TComboExItems

  

Implements a collection for the items added to TCustomComboBoxEx.

|

TListControlItems

  

Container for the items added to a list control.

|

TOwnedCollection

|

TCollection

|

TPersistent,IFPObserved

|

TObject

Description

TComboExItems is a TListControlItems descendant which Implements a collection for the items added to TCustomComboBoxEx and TComboBoxEx. TComboExItems extends the ancestor class to use the TComboExItem type for items added to the collection. Reimplemented methods are provided to add, insert, and retrieve collection items using the ItemClass required for the collection. An AddItem method is introduced to create a new collection item and configure its property values. The Notify and Update methods are overridden to use the correct ItemClass as well.

TComboExItems is the type used to implement the ItemsEx property in TCustomComboBoxEx.

See also

TListControlItems

  

Container for the items added to a list control.

TCustomComboBoxEx.ItemsEx

  

Collection with the extended items defined for the control.

TComboBoxEx.ItemsEx

  

Collection with the extended items defined for the control.


Version 3.2 Generated 2024-02-25 Home