Vcl.ComCtrls.TTreeView.OnCustomDrawItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomDrawItem;

C++

__property OnCustomDrawItem;

Properties

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

Description

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

Vcl.ComCtrls.TTreeView.OnCustomDrawItem inherits from Vcl.ComCtrls.TCustomTreeView.OnCustomDrawItem. All content below this line refers to Vcl.ComCtrls.TCustomTreeView.OnCustomDrawItem.

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