Skip to main content

TdxBackground.DoPaintEx(TdxPSReportRenderCustomCanvas,TRect,TdxPaintSequence,Integer,Integer) Method

Generates the OnPaintEx event.

Declaration

function DoPaintEx(ACanvas: TdxPSReportRenderCustomCanvas; Rect: TRect; Sequence: TdxPaintSequence; PixelsNumerator: Integer; PixelsDenominator: Integer): Boolean; virtual;

Parameters

Name Type
ACanvas TdxPSReportRenderCustomCanvas
Rect TRect
Sequence TdxPaintSequence
PixelsNumerator Integer
PixelsDenominator Integer

Returns

Type
Boolean

Remarks

The DoPaintEx method is called when painting a report background.

The Rect parameter specifies the rectangle where to draw the background.

The ADone parameter determines whether this method processes the entire drawing procedure. If ADone is True, the default drawing procedure is not called. In other words, if the ADone parameter is set to True it is the programmer who is entirely responsible for drawing.

The PixelsNumerator and PixelsDenominator parameters are used to convert object size in pixels to logical units. In order to calculate logical units of an object width/height, you should multiply this width/height in pixels by the PixelsNumerator parameter and divide the result by the PixelsDenominator parameter.

The Sequence parameter determines whether this method was called before or after background painting. The following values are available:

Value Description
psBefore Called before background painting.
psAfter Called after background painting.
See Also