RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListBox.DoGetDataObject Method

Returns the object associated with an item in a virtual list box.

Pascal
function DoGetDataObject(const Index: Integer): TObject;
C++
__fastcall TObject * DoGetDataObject(const int Index);

This protected method is called automatically when a virtual list box needs to supply the object associated with an item. DoGetDataObject is never called unless the list box is virtual (that is, unless the value of the Style property is lbVirtual or lbVirtualOwnerDraw). 

DoGetDataObject generates an OnDataObject event and returns the object that is supplied dynamically by the event handler. 

 

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