TSRVPOnPaint Type

Top  Previous  Next

A type of OnBeforePaint and OnAfterPaint events of TSRVPreview.

Unit SRVPreview.

type

  TSRVPOnPaint = procedure(Sender: TObject; ACanvas: TCanvas;

    ARect: TRect) of object;

ACanvas – canvas where to draw.

ARect – a location of page(s). This area includes TSRVPreview.BorderWidth, but does not include a shadow area (TSRVPreview.ShadowWidth).

When these events are called, a background color (beyond ARect) and a shadow is already drawn, and the clipping region is set to ARect.


ScaleRichView © Ilya Zelensky & Sergey Tkachenko