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

# TCustomListView.OnAdvancedCustomDrawSubItem

Event handler signalled to custom draw list sub-items when the draw stage is not cdPrePaint.

## Declaration

Source position: comctrls.pp line 1622

`protected property TCustomListView.OnAdvancedCustomDrawSubItem : TLVAdvancedCustomDrawSubItemEvent read FOnAdvancedCustomDrawSubItem write FOnAdvancedCustomDrawSubItem;`

## Description

OnAdvancedCustomDrawSubItem is a TLVAdvancedCustomDrawSubItemEvent property with the event handler signalled to draw the SubItems in a list item on the control. It is signalled from the CustomDrawSubItem method when the draw stage is a value other than cdPrePaint, and occurs when the IntfCustomDraw method is called by the widgetset class instance.

Arguments to the event handler include:

Sender
  The TCustomListView for the event.
Item
  The list item drawn in the handler.
SubItem
  The ordinal position in SubItems with the text drawn in the handler.
State
  The draw state for the list item.
Stage
  The draw stage for the list item. Will not contain the value cdPrePaint.
DefaultDraw
  Variable parameter which indicates if default drawing is performed by the list view control.

Use OnCustomDrawItem and OnAdvancedCustomDrawItem to custom draw the caption for a list item.

Use OnCustomDraw and OnAdvancedCustomDraw to custom draw the list view control.

Use OnCustomDrawSubItem to custom draw a sub-item for a list item on the control when the draw stage is cdPrePaint.

## See also

TCustomListView.CustomDrawSubItem |  | Performs custom drawing for the specified sub-item using the event handlers for the control.
TCustomListView.IntfCustomDraw |  | IntfCustomDraw - uses the interface to perform custom drawing
TCustomListView.OnCustomDraw |  | Event handler signalled to perform custom drawing for the list view control.
TCustomListView.OnCustomDrawItem |  | Event handler signalled to perform custom drawing for list items on the control.
TCustomListView.OnCustomDrawSubItem |  | Event handler signalled to perform custom drawing for list sub-item on the control.
TCustomListView.OnAdvancedCustomDraw |  | Event handler signalled to custom draw the grid control when the draw state is not cdPrePaint.
TCustomListView.OnAdvancedCustomDrawItem |  | Event handler signalled to custom draw a list item on the grid control when the draw state is not cdPrePaint.
TCustomListView.IsCustomDrawn |  | Returns True if a target is custom-drawn in the control.
TListItem.SubItems |  | Contains text displayed as additional columns on the list view control.
TCustomDrawStage |  | TCustomDrawStage a series of constants to define the drawing stages for custom-drawn controls.
TCustomDrawState |  | TCustomDrawState - set of TCustomDrawStateFlag.
TCustomDrawTarget |  | TCustomDrawTarget - enumerated type controlling how a target object is drawn.