Sign in Join
FPDoc Onlineexperiment

TListView.OnAdvancedCustomDraw property

Member of TListViewpublishedIn unit ComCtrls

Event handler signalled to custom draw the grid control when the draw state is not cdPrePaint.

Declaration

pascal
property OnAdvancedCustomDraw:;

Description

OnAdvancedCustomDraw is a TLVAdvancedCustomDrawEvent property with the event handler used to custom draw the grid control. It is signalled from the CustomDraw 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.
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 OnCustomDraw to custom draw the control when the draw stage is cdPrePaint.

Use OnCustomDrawItem and OnAdvancedCustomDrawItem to custom draw a list item on the control.

Use OnCustomDrawSubItem and OnAdvancedCustomDrawSubItem to custom draw a sub-item for a list item on the control.

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

See also

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