RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComCtrls.TLVDrawItemEvent Type

TLVDrawItemEvent is the type of the list view OnCustomDrawItem and OnDrawItem event handlers.

Pascal
TLVDrawItemEvent = procedure (Sender: TCustomListView; Item: TListItem; Rect: TRect; State: TOwnerDrawState) of object;
C++
(Sender: TCustomListView; Item: TListItem; Rect: TRect; State: TOwnerDrawState) ( TLVDrawItemEvent)();

Sender is the list view control in which an item is about to be drawn.  

Item is the item that is about to be drawn.  

Rect defines the coordinates of the item on the list view's canvas.  

State indicates various conditions that can influence how the item is drawn, such as whether it is selected, grayed, or focused. 

 

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