Vcl.ComCtrls.TListView.OwnerDraw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OwnerDraw: Boolean read FOwnerDraw write SetOwnerDraw default 0;

C++

__property OwnerDraw = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TListView

Description

Specifies whether the list view receives an OnDrawItem event.

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

Specifies whether the list view receives an OnDrawItem event.

Set OwnerDraw to True and ViewStyle to vsReport in order to allow the list view to receive the OnDrawItem event instead of the default rendering of list items.

Note: This property is independent of the OnCustomDraw, OnCustomDrawItem, OnAdvancedCustomDraw, and OnAdvancedCustomDrawItem events.

See Also