Sign in Join
FPDoc Onlineexperiment

TLBGetDataEvent procedure type

In unit StdCtrls

Specifies an object procedure type used to get the data for an item on a list box control in "virtual mode".

Declaration

pascal
TLBGetDataEvent = procedure(AControl: TWinControl; Index: Integer; 
 var Data: string) of object

Arguments

AControl

Control for the event notification. Must be cast to TCustomListBox to access members specific to the control.

Index

Ordinal position for the virtual list item.

Data

Content displayed for the virtual list item.

Description

TLBGetDataEvent is the type used to implement the OnData event handler in TCustomListBox / TListBox. Not used in the current LCL version.

Added in LCL version 5.0.

See also

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