Vcl.ComCtrls.TLVDrawItemEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

typedef void __fastcall (__closure *TLVDrawItemEvent)(TCustomListView* Sender, TListItem* Item, const System::Types::TRect &Rect, Winapi::Windows::TOwnerDrawState State);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

TLVDrawItemEvent is the type of the list view Vcl.ComCtrls.TCustomListView.OnDrawItem and Vcl.ComCtrls.TCustomListView.OnDrawItem event handlers.

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.

See Also