Vcl.ComCtrls.TCustomListView.OnAdvancedCustomDrawSubItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAdvancedCustomDrawSubItem: TLVAdvancedCustomDrawSubItemEvent read FOnAdvancedCustomDrawSubItem write FOnAdvancedCustomDrawSubItem;

C++

__property TLVAdvancedCustomDrawSubItemEvent OnAdvancedCustomDrawSubItem = {read=FOnAdvancedCustomDrawSubItem, write=FOnAdvancedCustomDrawSubItem};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

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