TCustomListView.OnAdvancedCustomDraw property
Event handler signalled to custom draw the grid control when the draw state is not cdPrePaint.
Declaration
property OnAdvancedCustomDraw: TLVAdvancedCustomDrawEvent read FOnAdvancedCustomDraw write FOnAdvancedCustomDraw;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.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
