Skip to main content

TBasedxReportLink.OnCustomDrawReportLinkTitle Event

Occurs when drawing the report title.

Declaration

property OnCustomDrawReportLinkTitle: TdxCustomDrawReportLinkTitleEvent read; write;

Remarks

The ACanvas parameter determines the drawing surface.

The ARect parameter specifies the bound rectangle for drawing.

When using custom draw methods, you must manage image repainting during zoom events. It is always necessary when previewing the report and necessary only for images when printing the report. The ANom and ADenom parameters determine the coefficient of magnification and demagnification accordingly. Refer to the global FSmoothlyStretchImages variable description to learn how to paint images with anti-aliasing.

The TextAlignX and TextAlignY parameters specify horizontal and vertical alignment of the text. The default values of these parameters are taCenterX and taCenterY, correspondingly.

The AColor parameter sets the font color for the report title.

The AFont parameter sets the font for the report title.

The ADone parameter determines whether the OnCustomDrawReportLinkTitle method processes the entire operation.

The height of the report title region is calculated automatically and depends upon the font used, but if the font size changes, you must also handle the OnMeasureReportLinkTitle event to correct the report title’s height.

The height of the report title region is calculated automatically and depends upon the font used. To paint an image in the report title or paint its text using a custom font size, do the following to specify the title’s height:

  • Handle the OnMeasureReportLinkTitle event or the component printer’s OnMeasureReportTitle event.

  • Pass the new height as the AHeight event parameter.

See Also