Vcl.ComCtrls.TLVCustomDrawItemEvent
Delphi
TLVCustomDrawItemEvent = procedure(Sender: TCustomListView; Item: TListItem;
State: TCustomDrawState; var DefaultDraw: Boolean) of object;
C++
typedef void __fastcall (__closure *TLVCustomDrawItemEvent)(TCustomListView* Sender, TListItem* Item, TCustomDrawState State, bool &DefaultDraw);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | Vcl.ComCtrls |
Description
TLVCustomDrawItemEvent is the procedure type of the TCustomListView.OnCustomDrawItem and TListView.OnCustomDrawItem events.
Sender
is the list view whose item is to be drawn.
Item
is the item that should be rendered.
State
indicates the state of the item, so that the event handler can adjust the image to reflect whether the item is selected, disabled, hot, and so on.
Set DefaultDraw
to False if you do not want the control to paint the item's text after the event handler exits. If DefaultDraw
remains True, the list view adds the item's text to the image on the canvas.