RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.DrawItem Method

Draw item event dispatcher.

Pascal
procedure DrawItem(Item: TListItem; Rect: TRect; State: TOwnerDrawState); virtual;
C++
virtual __fastcall DrawItem(TListItem Item, TRect Rect, TOwnerDrawState State);

DrawItem generates an OnDrawItem event if there is an OnDrawItem event handler. Otherwise, it paints the text of the list view item. This method is only called if the OwnerDraw property is true. 

 

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