<< Click to display table of contents >> TSRVReadModeProperty |
TSRVReadModeProperty is the class for ReadModeProperty property of TSRichViewEdit
Unit SclRView.
Syntax
TSRVReadModeProperty = class(TPersistent)
TObject
TPersistent
This class defines properties for displaying pages in a way convenient for reading.
It is applied when you assign Active = True. Before activating a read mode, assign the parent editor's PageProperty.PageViewMode = True.
The results depend on the parent editor's PageProperty.AutoWidth.
Side to side mode
If AutoWidth = False, pages are displayed at their normal size, i.e. pages look identically to pages displayed without a read mode.
However, there are the following differences:
•all pages are arranged in a horizontal row (the parent editor's PagePosProperty.MaxPageColCount is ignored)
•the horizontal scroll bar scrolls by whole pages; the vertical scroll bar is disabled; so all visible pages are shown completely
•the parent editor's ViewProperty.ZoomPercent becomes read-only; it is auto-calculated to show at least MinPageColCount pages completely.
•no more than MaxPageColCount pages are displayed at the same time.
Normal read mode
If AutoWidth = True, each page occupies all available space in the editor (excluding the parent editor's PagePosProperty.HPadding and VPadding).
Additionally:
•all pages are arranged in a horizontal row; only one page is visible (all column count properties are ignored)
•the horizontal scroll bar scrolls by whole pages; the vertical scroll bar is disabled; so a visible page is shown completely
•headers and footers are not displayed
Visual properties
In a read mode, special page transition effects are available. They are defined in PageFlipEffect property.
You can hide a page background picture and define a special page background color.