Sign in Join
FPDoc Onlineexperiment

TComboExItems class

In unit ComboEx

Implements a collection for the items added to TCustomComboBoxEx.

Declaration

pascal
TComboExItems = class(TListControlItems)

Inheritance

  1. TComboExItems
  2. TListControlItems
  3. TOwnedCollection
  4. TCollection
  5. TPersistent
  6. 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

Properties

ComboItemspublicProvides indexed access to the items in the collection.

Methods

NotifyprotectedPerforms component notifications when a collection item is added to or removed from the Collection.
UpdateprotectedUpdates the collection when the specified item has been changed.
AddpublicAdds a new item to the collection.
AddItempublicAdds a new item with the specified values to the collection.
InsertpublicInserts a collection item at the specified position in the collection.

Fields

FAddingOrDeletingItemprotectedTracks the add or delete status for the collection.

Inherited

From TListControlItems (9)

CaseSensitive CompareItems CustomSort DoCustomSort DoOnCompare Items OnCompare Sort SortType

From TOwnedCollection (2)

Create GetOwner

From TCollection (24)

Assign BeginUpdate Changed Clear Count Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItem GetItemAttr GetNamePath ItemClass Move Owner PropName SetItem SetItemName SetPropName UpdateCount

From TPersistent (5)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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