Sign in Join
FPDoc Onlineexperiment

TListView.OnCustomDraw property

Member of TListViewpublishedIn unit ComCtrls

Event handler signalled to perform custom drawing for the list view control.

Declaration

pascal
property OnCustomDraw:;

Description

OnCustomDraw is a TLVCustomDrawEvent property with the event handler signalled when a custom draw operation is handled by the LCL interface. It is signalled from the CustomDraw method when the drawing stage for the control is cdPrePaint.

Arguments to the event handler include the control, the display rectangle for the operation, and a variable parameter that indicates whether default drawing is performed by the list view control.

OnCustomDraw occurs when the widgetset class for the control calls the IntfCustomDraw method and the list view control is the draw target.

Use OnAdvancedCustomDraw to perform custom drawing when the drawing state has a value other than cdPrePaint.

Use OnCustomDrawItem and OnAdvancedCustomDrawItem to perform custom drawing for the list items on the control.

Use OnCustomDrawSubItem and OnAdvancedCustomDrawSubItem to perform custom drawing for the list sub-items on the control.

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

See also

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