Vcl.ComCtrls.TTreeView.OnCustomDraw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomDraw;

C++

__property OnCustomDraw;

Properties

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

Description

Occurs immediately prior to painting the tree view control.

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

Occurs immediately prior to painting the tree view control.

Write an OnCustomDraw event handler to paint an owner-drawn tree view. Use the Canvas property as a drawing surface when painting the image of the tree view.

To paint individual items, use the OnCustomDrawItem event instead.

Note: OnCustomDraw only occurs prior to painting the tree view control. To customize the painting at other stages of the paint process (such as after the default drawing), use OnAdvancedCustomDraw instead.

OnCustomDraw is an event handler of type Vcl.ComCtrls.TTVCustomDrawEvent.

See Also

Code Examples