RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdCtrls.TLBGetDataEvent Type

TLBGetDataEvent is the type of the list box OnData event handler.

Pascal
TLBGetDataEvent = procedure (Control: TWinControl; Index: Integer; var Data: string) of object;
C++
(Control: TWinControl; Index: Integer; var Data: string) ( TLBGetDataEvent)();

StdCtrls

Control is the virtual list box whose item is needed.  

Index is the index of the desired item. Index must be less than the value of the Count property.  

Data returns the string that is the value of the specified item. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!