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

# TCustomComboBox.OnGetItems

Handler invoked when widgetset items list can be populated.

## Declaration

Source position: stdctrls.pp line 401

`protected property TCustomComboBox.OnGetItems : TNotifyEvent read FOnGetItems write FOnGetItems;`

## Description

OnGetItems is a TNotifyEvent property with the event handler signalled to load the values used in the Items property.

OnGetItems is signalled (when assigned) from the GetItems method. Some widgetsets, like GTK, call GetItems (via IntfGetItems) just before the drop-down list is displayed. Others call GetItems when the handle for the control is created. OnGetItems provides one event to handle both cases.

An application should implement and assign an object procedure to the handler to respond to the event notification. The procedure must perform any actions needed to load the values for the Items property from an appropriate source.

Values can always be stored in the Items property using code at run-time, or by entering the values using the Object Inspector at design-time.

## See also

TCustomComboBox.GetItems |  | Signals the OnGetItems event handler.
TCustomComboBox.Items |  | The list of items displayed in the combo-box control.
TCustomComboBox.IntfGetItems |  | Gets the values in the Items property for the widgetset class.
TNotifyEvent