TCustomComboBox.OnGetItems property
Handler invoked when widgetset items list can be populated.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
