[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Renders the specified tree node to the canvas for the control.
Source position: comctrls.pp line 3560
protected procedure TCustomTreeView.DoPaintNode( |
Node: TTreeNode |
); virtual; |
Node |
|
Tree node rendered in the method. |
DoPaintNode is a method used to render the tree node specified in Node to the Canvas for the control. DoPaintNode is called from the DoPaint method, and occurs for visible nodes processed in the method. No actions are performed in the method when the Node is not in the visible client area for the control.
DoPaintNode draws the elements which represent a given tree node, including:
DoPaintNode retrieves scaled image resolutions needed for the Images and StateImages in the control. The images sizes are determined by applying the scaling factor in Canvas to the current Pixels Per Inch setting in Font.
Use of multi-stage custom drawing is supported. If event handlers are provided for the cdPrePaint and cdPostPaint stages, the CustomDraw and CustomDrawItem methods are used to render the node with the drawing state for the node.