[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 1593

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.

See also

TCustomListView.OwnerDraw

  

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

TCustomListView.ViewStyle

  

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

TCustomListView.DrawItem

  

Draws the specified list item with a given state.