TBaseVirtualTree.PaintTree Method

Virtual Tree View

Main paint routine for the tree image.

Pascal
procedure PaintTree(TargetCanvas: TCanvas; Window: TRect; Target: TPoint; PaintOptions: TVTInternalPaintOptions; PixelFormat: TPixelFormat = pfDevice);
Description

PaintTree is the core paint routine used to draw any part of the tree image to any canvas. It is responsible for maintaining the paint cycles per node as well as coordinating drawing of the various parts of the tree image. TargetCanvas is the canvas to which to draw the tree image. This is usually the tree window itself but could well be a bitmap or printer canvas. Window determines which part of the entire tree image to draw. The full size of the virtual image is determined by GetTreeRect. Target is the position in TargetCanvas where to draw the tree part specified by Window. PaintOptions determines what of the tree to draw. For different tasks usually different parts need to be drawn, with a full image in the window, selected only nodes for a drag image etc.

See Also
Class
Links
What do you think about this topic? Send feedback!