RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComCtrls.TLVOwnerDataFindEvent Type

TLVOwnerDataFindEvent is the type of a list view's OnDataFind event handler.

Pascal
TLVOwnerDataFindEvent = procedure (Sender: TObject; Find: TItemFind; const FindString: string; const FindPosition: TPoint; FindData: TCustomData; StartIndex: Integer; Direction: TSearchDirection; Wrap: Boolean; var Index: Integer) of object;
C++
(Sender: TObject; Find: TItemFind; const FindString: string; const FindPosition: TPoint; FindData: TCustomData; StartIndex: Integer; Direction: TSearchDirection; Wrap: Boolean; var Index: Integer) ( TLVOwnerDataFindEvent)();

Sender is the list view control in which a search has been requested.  

Find specifies the type of search to perform (any of ifData, ifPartialString, ifExactString, ifNearest).  

FindString specifies the item text to search for. FindString is ignored unless Find contains ifPartialString or ifExactString.  

FindPosition specifies the point from which to start the search. FindPosition is ignored unless Find contains ifNearest.  

FindData specifies the item data to search for. FindData is ignored unless Find contains ifData.  

StartIndex specifies the index of the item from which the search should start.  

Direction specifies the direction for the search (sdLeft, sdRight, sdAbove, sdBelow, or sdAll).  

Wrap specifies whether the search should continue from the start of the list view control if no match is found.  

Index is where to store the index of the found item. Set Index to –1 if no item is found. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!