Vcl.StdCtrls.TCustomListBox.OnData
Delphi
property OnData: TLBGetDataEvent read FOnData write FOnData;
C++
__property TLBGetDataEvent OnData = {read=FOnData, write=FOnData};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomListBox |
Description
Occurs when a virtual list box needs to supply the text of an item.
You must supply an OnData event handler to dynamically supply the items in the list box when the Style property is lbVirtual or lbVirtualOwnerDraw.
OnData is an event handler of type Vcl.StdCtrls.TLBGetDataEvent.