Sign in Join
FPDoc Onlineexperiment

TListView.OnDrawItem property

Member of TListViewpublishedIn unit ComCtrls

Event handler signalled to render an owner drawn item.

Declaration

pascal
property OnDrawItem:;

Description

OnDrawItem is a TLVDrawItemEvent property which is the event handler signalled to render an owner drawn item. The event is triggered (when assigned) in the DrawItem method only when OwnerDraw is set to True and ViewStyle contains vsReport.

Arguments to the event handler include:

Sender
The TCustomListView control.
AItem
The TListItem to draw in the handler.
ARect
The display rectangle for the list item.
AState
The draw state for the list item.

This description is the one of ComCtrls.TCustomListView.OnDrawItem.

See also

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