Sign in Join
FPDoc Onlineexperiment

TListView.OnAdvancedCustomDrawSubItem property

Member of TListViewpublishedIn unit ComCtrls

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

Declaration

pascal
property OnAdvancedCustomDrawSubItem:;

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.

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

See also

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