Vcl.ComCtrls.TListView.OnAdvancedCustomDrawSubItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAdvancedCustomDrawSubItem: TLVAdvancedCustomDrawSubItemEvent read FOnAdvancedCustomDrawSubItem write FOnAdvancedCustomDrawSubItem;

C++

__property OnAdvancedCustomDrawSubItem;

Properties

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

Description

Occurs at discrete stages during the painting of a subitem in an owner-drawn list view.

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

Occurs at discrete stages during the painting of a subitem in an owner-drawn list view.

Write an OnAdvancedCustomDrawSubItem event handler to customize the drawing of 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. OnAdvancedCustomDrawSubItem occurs at various stages in the rendering of subitems. Unlike the OnDrawItem event, the list view receives this event even if the OwnerDraw property is False.

Note: OnAdvancedCustomDrawSubItem occurs at various stages during the paint process. If you are only writing code to execute immediately prior to rendering the subitem, it is more efficient to use the OnCustomDrawSubItem event.

OnAdvancedCustomDrawSubItem is an event handler of type TLVAdvancedCustomDrawSubItemEvent.

See Also