TRVPrint.OnPagePostpaint

<< Click to display table of contents >>

TRVPrint.OnPagePostpaint

Allows to draw on a page (paper and print preview)

type

  TRVPagePrepaintEvent = procedure (Sender: TRVPrint; 

    PageNo: Integer; Canvas: TCanvas; Preview: Boolean;

    PageRect, PrintAreaRect: TRVCoordRect) of object;

 

property OnPagePostpaint: TRVPagePrepaintEvent;

(introduced in version 1.7)

Sequence of actions:

1.drawing background (if not transparent);

2.OnPagePrepaint;

3.drawing document;

4.OnPagePostpaint.

 

Parameters

PageNo – page number (starting from 1);

Canvas – canvas where to draw;

Preview – "is this a preview drawing?"

PageRect – rectangle around the full page, pixels.

PrintAreaRect – rectangle around the document on the page (PageRect minus Margins), pixels.

 

See also:

▪GetHeaderRect;

▪GetFooterRect;

▪the picture in the TRVPrint main topic.