Vcl.ComCtrls.TCustomListView.OwnerDraw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OwnerDraw: Boolean read FOwnerDraw write SetOwnerDraw default False;

C++

__property bool OwnerDraw = {read=FOwnerDraw, write=SetOwnerDraw, default=0};

Properties

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

Description

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