[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomListView.OwnerDraw

Indicates if owner-draw mode is used for the control.

## Declaration

Source position: comctrls.pp line 1589

`protected property TCustomListView.OwnerDraw : Boolean index Ord(lvpOwnerDraw) read GetProperty write SetProperty default False;`

## Description

OwnerDraw is a Boolean property which indicates if the control implements is own drawing routines instead of using the default drawing routines for list items on the control. The default value for the property is False.

When set to True, the OnDrawItem event handler is signalled to draw list items when the control is using the Report view style (ViewStyle = vsReport). The handler is signalled (when assigned) from the DrawItem method, and occurs when the CN_DRAWITEM control notification message is handled for the control. It should handle all aspects of drawing the list item to the control Canvas. If OnDrawItem has not been assigned, a basic default drawing routine is used.

OwnerDraw is one of the TListViewProperty values included in the TListViewProperties set type and exchanged with the widgetset class. The property value is read from and written to the TCustomTreeview widgetset class instance when its handle is valid. Changing the value for the property causes the widgetset class to be updated with the new value.

## See also

TCustomListView.OnDrawItem |  | Event handler signalled to render an owner drawn item.
TCustomListView.DrawItem |  | Draws the specified list item with a given state.
TCustomListView.ViewStyle |  | Sets one of ListView layouts: List (simple column), Report (few columns with full width), Icon (big icons), Small Icon (small icons, 16x16).
TListViewProperties |  | Set type used to store values from the TListViewProperty enumeration.
TListViewProperty |  | Represents Boolean properties used in TCustomListView.