Sign in Join
FPDoc Onlineexperiment

TListView.OwnerDraw property

Member of TListViewpublishedIn unit ComCtrls

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

Declaration

pascal
property OwnerDraw:;

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.

This description is the one of ComCtrls.TCustomListView.OwnerDraw.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.