a_layoutdraft TsrvActionLayoutDraft

Properties   Events  | Actions overview

<< Click to display table of contents >>

a_layoutdraft TsrvActionLayoutDraft

Properties   Events  | Actions overview

TsrvActionLayoutDraft switches TSRichViewEdit control to a "draft" layout.

Unit SRVActions;

Syntax

TsrvActionLayoutDraft = class(TsrvActionCustomLayout)

hmtoggle_arrow1Hierarchy

Description

In this mode, a document is shown using the target editor's PageProperty.PageWidth, but as a long single page.

The main changes made by this action for TSRichViewEdit control:

Property

Assigned value

PageProperty.PageViewMode

False

PageProperty.AutoWidth

False

ReadModeProperty.Active

False

This action also changes the following properties:

Property

Assigned value

Color

clWhite

PageProperty.BorderPen.Style

psClear

PagePosProperty.HPadding

HPadding

BackgroundProperty.Visible

False

ViewProperty.ShowScrollHint

True

PagePosProperty.AlignPageH

srvaphLeft

PagePosProperty.AlignPageV

srvapvTop

PageProperty.HeaderVisible

False

PageProperty.FooterVisible

False

PagePosProperty.HiddenDistances

excludes [srvppdHPadding, srvppdVPadding, srvppdPageHSpacing]

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

See also:

TsrvActionLayoutWeb

TsrvActionLayoutPrint

TsrvActionLayoutSideToSide

TsrvActionLayoutRead