TCustomRVPrintPreview

Properties   Methods   Events

<< Click to display table of contents >>

TCustomRVPrintPreview

Properties   Methods   Events

TCustomRVPrintPreview is an ancestor of TRVPrintPreview component. This class draws a blank page, introduces mechanisms of page switching and scaling.

Unit [VCL/FMX] CRVPP / fmxCRVPP.

Syntax

TCustomRVPrintPreview = class(TRVScroller)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TCustomControl

TRVScroller

Cursors

Print preview uses two cursors:

ZoomInCursor,

ZoomOutCursor.

Scaling

Scaling is defined by:

ZoomMode property mode of scaling;

ZoomPercent property scaling percent;

SetZoom method changes ZoomPercent;

OnZoomChanged event occurs when ZoomPercent changes;

ClickMode property allows/disallows zooming.

Page switching

First, Last, Prev, Next methods, PageNo property.

Displaying margins

MarginsPen/MarginsStroke property

Colors and widths

Color/Fill – background fill;

PageBorderColor, PageBorderWidth define border around the page;

ShadowColor, ShadowWidth define shadow;

DarkModeUI inverts luminance of colors in user interface of this control.

Scheme

TCustomRVPrintPreview

TCustomRVPrintPreview

The scheme above is for VCL and LCL version of the component.

FireMonkey version uses Fill property instead of Color property.