TCustomListView.OnAdvancedCustomDrawItem property
Event handler signalled to custom draw a list item on the grid control when the draw state is not cdPrePaint.
Declaration
property OnAdvancedCustomDrawItem: TLVAdvancedCustomDrawItemEvent read FOnAdvancedCustomDrawItem write FOnAdvancedCustomDrawItem;Description
OnAdvancedCustomDrawItem is a
TLVAdvancedCustomDrawItemEvent property with the event handler
used to custom draw a list item on the grid control. It is signalled from the
CustomDrawItem 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 OnCustomDrawItem to custom draw a list item when the draw stage is cdPrePaint.
Use OnCustomDraw and OnAdvancedCustomDraw to custom draw the list view control.
Use OnCustomDrawSubItem and OnAdvancedCustomDrawSubItem to custom draw a sub-item for a list item on the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
