From RAD Studio API Documentation
Jump to: navigation, search


property OnCustomDraw: TLVCustomDrawEvent read FOnCustomDraw write FOnCustomDraw;


__property OnCustomDraw;


Type Visibility Source Unit Parent
event published
Vcl.ComCtrls TListView


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

Vcl.ComCtrls.TListView.OnCustomDraw inherits from Vcl.ComCtrls.TCustomListView.OnCustomDraw. All content below this line refers to Vcl.ComCtrls.TCustomListView.OnCustomDraw.

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