Vcl.ComCtrls.TCustomTreeView.OnAdvancedCustomDraw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAdvancedCustomDraw: TTVAdvancedCustomDrawEvent read FOnAdvancedCustomDraw write FOnAdvancedCustomDraw;

C++

__property TTVAdvancedCustomDrawEvent OnAdvancedCustomDraw = {read=FOnAdvancedCustomDraw, write=FOnAdvancedCustomDraw};

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 the tree view control.

Write an OnAdvancedCustomDraw 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 OnAdvancedCustomDrawItem or OnCustomDrawItem event instead.

Note: OnAdvancedCustomDraw occurs at several stages during the paint process, not just immediately prior to the default rendering. If you only need to use the cdPrePaint stage, it is more efficient to use the OnCustomDraw event.

OnAdvancedCustomDraw is an event handler of type Vcl.ComCtrls.TTVAdvancedCustomDrawEvent.

See Also