[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomListView.OnDrawItem

Event handler signalled to render an owner drawn item.

Declaration

Source position: comctrls.pp line 1609

protected property TCustomListView.OnDrawItem : TLVDrawItemEvent
  read FOnDrawItem
  write FOnDrawItem;

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.

See also

TCustomListView.OwnerDraw

  

Indicates if owner-draw mode is used for the control.

TCustomListView.DrawItem

  

Draws the specified list item with a given state.

TCustomListView.ViewStyle

  

Sets one of ListView layouts: List (simple column), Report (few columns with full width), Icon (big icons), Small Icon (small icons, 16x16).


Version 3.2 Generated 2024-02-25 Home