a_layoutread TsrvActionLayoutRead

Properties   Events  | Actions overview

<< Click to display table of contents >>

a_layoutread TsrvActionLayoutRead

Properties   Events  | Actions overview

TsrvActionLayoutRead switches TSRichViewEdit control to a "read mode" layout.

Unit SRVActions;

Syntax

TsrvActionLayoutRead = class(TsrvActionCustomLayout)

hmtoggle_arrow1Hierarchy

Description

In this mode width and height of pages are calculated automatically to fit the editor. Pages are shown completely, are arranged in one row, are scrolled horizontally with a special transition effect.

The main changes made by this action for TSRichViewEdit control:

Property

Assigned value

PageProperty.PageViewMode

True

PageProperty.AutoWidth

True

ReadModeProperty.Active

True

This action also changes the following properties:

Property

Assigned value

Color

Color

PageProperty.BorderPen.Style

psSolid

PagePosProperty.HPadding

HPadding

BackgroundProperty.Visible

True

ViewProperty.ShowScrollHint

True

PagePosProperty.AlignPageH

srvaphCenter

PagePosProperty.AlignPageV

srvapvCenter

PageProperty.HeaderVisible

False

PageProperty.FooterVisible

False

PagePosProperty.HiddenDistances

excludes [srvppdHPadding, srvppdVPadding, srvppdPageHSpacing]

This action also changes the following properties specific for a read mode:

Property

Assigned value

ReadModeProperty.PageFlipEffect

PageFlipEffect

ReadModeProperty.PageColor

PageColor

ReadModeProperty.HidePageBackgroundImage

HidePageBackgroundImage

After the layout is changed, TRVAControlPanel.OnViewChanged event occurs.

See also:

TsrvActionLayoutDraft

TsrvActionLayoutWeb

TsrvActionLayoutPrint

TsrvActionLayoutSideToSide