Skip to main content

TCustomdxTreeViewReportLink.OnCustomDrawNode Event

Occurs when drawing a specific node within a tree view control.

Declaration

property OnCustomDrawNode: TdxTVCustomDrawNodeEvent read; write;

Remarks

Write an OnCustomDrawNode event handler to draw a specific node when printing a report. Draw a cell using the TCanvas method.

Parameter Description
ANode Specifies a specific node of a tree view component.
ACanvas Determines canvas for drawing.
ABoundsRect Specifies rectangle including borders for drawing.
AClientRect Specifies rectangle excluding borders for drawing.
AText Determines node text. You can change it if necessary.
AFont Specifies font for drawing node text. You can change it, if necessary.
AColor Specifies the background color of a node. You can change it, if necessary.
ATextAlignX Determines horizontal text alignment of a node. You can change it, if necessary.
ATextAlignY Determines vertical text alignment of a node. You can change it, if necessary.
ADone Determines whether the OnCustomDrawNode event handler entirely draws a node. If ADone is True, the default drawing procedure is not called.

In order to specify the color, font, text or alignment, used for drawing a specific node, set proper values for the AColor, AFont, AText, ATextAlignX or ATextAlignY parameters and set ADone to False within the OnCustomDrawNode event handler.

See Also