RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdCtrls.TLBFindDataEvent Type

TLBFindDataEvent is the type of the list box OnDataFind event handler.

Pascal
TLBFindDataEvent = function (Control: TWinControl; FindString: string): Integer of object;
C++
(Control: TWinControl; FindString: string): Integer ( TLBFindDataEvent)();

StdCtrls

Control is the virtual list box whose item index is needed.  

FindString is the text of the item whose index is needed.  

The event handler returns the index of the item identified by FindString. This return value must be in the range from 0 to one less than the value of the Count property. 

 

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