Vcl.ComCtrls.TCustomTreeView.OnCustomDraw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomDraw: TTVCustomDrawEvent read FOnCustomDraw write FOnCustomDraw;

C++

__property TTVCustomDrawEvent OnCustomDraw = {read=FOnCustomDraw, write=FOnCustomDraw};

Properties

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

Description

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