TCustomdxComponentPrinter.OnCustomDrawReportTitle Event
Occurs when drawing the report title.
Declaration
property OnCustomDrawReportTitle: TdxCustomDrawReportTitleEvent read; write;
Remarks
Handle this event to draw a specific report title for the report link specified in the AReportLink parameter. 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.
The TextAlignX and TextAlignY parameters specify horizontal and vertical alignment of the report title. The default values of these parameters are taCenterX and taCenterY, correspondingly.
The AColor parameter sets the background 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’s region is calculated automatically and depends upon the font used but if the Font.Size property is changed you must also handle the OnMeasureReportTitle event to correct the height of the report title. To draw an image in the report title you should also determine its real height via the OnMeasureReportTitle event.