Vcl.ComCtrls.TTreeView.OnAdvancedCustomDraw
Delphi
property OnAdvancedCustomDraw;
C++
__property OnAdvancedCustomDraw;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTreeView |
Description
Occurs at discrete stages during the painting of the tree view control.
Vcl.ComCtrls.TTreeView.OnAdvancedCustomDraw inherits from Vcl.ComCtrls.TCustomTreeView.OnAdvancedCustomDraw. All content below this line refers to Vcl.ComCtrls.TCustomTreeView.OnAdvancedCustomDraw.
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.