Vcl.ComCtrls.TCustomTreeView.OnAdvancedCustomDrawItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAdvancedCustomDrawItem: TTVAdvancedCustomDrawItemEvent read FOnAdvancedCustomDrawItem write FOnAdvancedCustomDrawItem;

C++

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

Properties

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

Description

Occurs at discrete stages during the painting of tree view nodes.

Write an OnAdvancedCustomDrawItem event handler to customize the painting of individual items in the tree view.

Note: OnAdvancedCustomDrawItem occurs at several stages during the paint process and allows you to suppress the default painting of tree node images while still allowing the default painting of the node. If you only need to use the cdPrePaint stage and do not want to suppress only the painting of tree node images, it is more efficient to use the OnCustomDrawItem event.

OnAdvancedCustomDrawItem is an event handler of type Vcl.ComCtrls.TTVAdvancedCustomDrawItemEvent.

See Also