Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Generates the OnPaintEx event.

#Declaration

Delphi
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