[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 1563

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.

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).