Sign in Join
FPDoc Onlineexperiment

TLVCustomDrawItemEvent procedure type

In unit ComCtrls

Specifies an event handler signalled to custom draw an item on a list view control.

Declaration

pascal
TLVCustomDrawItemEvent = procedure(Sender: TCustomListView; 
 Item: TListItem; 
 State: TCustomDrawState; 
 var DefaultDraw: Boolean) of object

Arguments

Sender

Object for the event notification. It must be cast to the TCustomListView type to access properties or methods specific to the list view control.

Item

List item for the event notification.

State

Drawing state (like focused, selected, disabled) for the list item.

DefaultDrawTrue if default drawing should be performed in the list view control.

Description

TLVCustomDrawItemEvent is the type used to implement the OnCustomDrawItem event handler in TCustomListView. See TLVAdvancedCustomDrawItemEvent for the event signalled to draw a list item using a specific drawing state or stage.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.