Vcl.ComCtrls.TCustomListView.OnCustomDraw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomDraw: TLVCustomDrawEvent read FOnCustomDraw write FOnCustomDraw;

C++

__property TLVCustomDrawEvent OnCustomDraw = {read=FOnCustomDraw, write=FOnCustomDraw};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Occurs when an owner-draw list view must be rendered.

Write an OnCustomDraw event handler to draw to the list view's Canvas before its items are painted. Unlike the OnDrawItem event, the list view receives this event even if the OwnerDraw property is False.

Note: OnCustomDraw occurs immediately prior to the rendering of the list view control. To augment the default drawing process at other stages (such as when the background is erased or after the list view is drawn), use the OnAdvancedCustomDraw event instead.

OnCustomDraw is an event handler of type Vcl.ComCtrls.TLVCustomDrawEvent.

See Also