RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.CustomDrawItem Method

Custom draw item event dispatcher.

Pascal
function CustomDrawItem(Item: TListItem; State: TCustomDrawState; Stage: TCustomDrawStage): Boolean; virtual;
C++
virtual __fastcall Boolean CustomDrawItem(TListItem Item, TCustomDrawState State, TCustomDrawStage Stage);

CustomDraw generates an OnCustomDrawItem or OnAdvancedCustomDrawItem event (depending on the drawing stage and the existence of the event handler) It returns a value indicating whether the list view should continue by drawing the text of the item (true) or not (false). 

 

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