Vcl.ComCtrls.TCustomListView.OnAdvancedCustomDrawItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAdvancedCustomDrawItem: TLVAdvancedCustomDrawItemEvent read FOnAdvancedCustomDrawItem write FOnAdvancedCustomDrawItem;

C++

__property TLVAdvancedCustomDrawItemEvent OnAdvancedCustomDrawItem = {read=FOnAdvancedCustomDrawItem, write=FOnAdvancedCustomDrawItem};

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 an item in an owner-drawn list view.

Write an OnAdvancedCustomDrawItem event handler to customize the drawing of individual items on the list view's canvas (using the Canvas property). OnAdvancedCustomDrawItem occurs at various stages in the rendering of a list item.

Unlike the OnDrawItem event, the list view receives this event even if the OwnerDraw property is False. The OnAdvancedCustomDrawItem event handler provides slightly different state information than the OnDrawItem event and occurs after the default rendering as well as before.

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

OnAdvancedCustomDrawItem is an event handler of type TLVAdvancedCustomDrawItemEvent.

See Also