EControl Syntax Editor SDK
TSyntaxTreeView.OnAdvancedCustomDraw Property

Occurs at discrete stages during the painting of the tree view control.

property OnAdvancedCustomDraw;

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.

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.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!