Vcl.ComCtrls.TListView.OnCustomDrawSubItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomDrawSubItem: TLVCustomDrawSubItemEvent read FOnCustomDrawSubItem write FOnCustomDrawSubItem;

C++

__property OnCustomDrawSubItem;

Properties

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

Description

Occurs when a subitem must be rendered in an owner-draw list view.

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

Occurs when a subitem must be rendered in an owner-draw list view.

Write code in an OnCustomDrawSubItem handler to draw to the subitems that appear in additional columns to the right of each item when ViewStyle is vsReport. Use the list view's Canvas property as a drawing surface. Unlike the OnDrawItem event, the list view receives this event even if the OwnerDraw property is False.

Note: OnCustomDrawSubItem occurs immediately prior to the rendering of each subitem. To augment the default drawing process at other stages (such as after the subitem is drawn), use the OnAdvancedCustomDrawSubItem event instead.

OnCustomDrawSubItem is an event handler of type Vcl.ComCtrls.TLVCustomDrawSubItemEvent.

See Also