Vcl.ComCtrls.TCustomTreeView.OnCustomDrawItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomDrawItem: TTVCustomDrawItemEvent read FOnCustomDrawItem write FOnCustomDrawItem;

C++

__property TTVCustomDrawItemEvent OnCustomDrawItem = {read=FOnCustomDrawItem, write=FOnCustomDrawItem};

Properties

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

Description

Occurs immediately prior to painting a node in a tree view control.

Write an OnCustomDrawItem event handler to paint individual items in the tree view, or to provide a background to the item before the default rendering of the item.

Note: OnCustomDrawItem only occurs prior to painting individual tree items. To customize the painting of items at other stages of the paint process (such as after the item is painted), use OnAdvancedCustomDrawItem instead.

OnCustomDrawItem is an event handler of type Vcl.ComCtrls.TTVCustomDrawItemEvent.

See Also

Code Examples