Sign in Join
FPDoc Onlineexperiment

TCustomListView.CustomDrawSubItem function

Member of TCustomListViewprotectedIn unit ComCtrls

Performs custom drawing for the specified sub-item using the event handlers for the control.

Declaration

pascal
function CustomDrawSubItem(AItem: TListItem; ASubItem: Integer; 
 AState: TCustomDrawState; 
 AStage: TCustomDrawStage): Boolean; virtual

Arguments

AItem

List view item with the sub-item drawn in the method.

ASubItem

Ordinal position for the sub-item drawn in the method.

AState

Drawing state for the sub-item (selected, focused, disabled, et. al.).

AStage

Drawing stage for the sub-item. cdPrePaint allows the OnCustomDrawSubItem event handler to be signalled.

Function result

True if default drawing for the sub-item needs to be performed in the list view control.

Description

CustomDrawSubItem is a Boolean function used to custom draw a sub-item on the list view control. The OnCustomDrawSubItem and OnAdvancedCustomDrawSubItem event handlers are signalled (when assigned) to perform the drawing operations needed for the item, sub-item, stage, and state arguments.

OnCustomDrawSubItem is signalled when Stage contains cdPrePaint. OnAdvancedCustomDrawSubItem is signalled for any of the values in the TCustomDrawStage enumeration.

CustomDrawSubItem is called from the IntfCustomDraw method.

See also

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