Displaying ScaleRichView without Margins

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Displaying ScaleRichView without Margins

Post by DavidRM »

Is there a way to limit the display of SRVE to only show the actual text area? That is, without the blank margins along all 4 sides?

Thanks.

-David
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

Yes,

Page alignment
srve.ViewProperty.AlignPageH := srvaphLeft; - Without a space at the left
srve.ViewProperty.AlignPageV := srvapvTop; - Without a space at the top

Bounds Left and Right
srve.PageProperty.BoundLeftRight := 0; - size of a space

Distance between pages and Top
srve.PageProperty.MinPageBreakHeight := 5;
srve.PageProperty.MaxPageBreakHeight := 25;

To show the text one page
srve.PageProperty.PageViewMode := False;

The size of width of page depends on the size of visible area of a component
srve.PageProperty.AutoWidth := False;

Look as options for modes SRV
procedure OnePageMode, WebMode in ActionTest for SRV
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Post by DavidRM »

What I'm really looking for is something like the "Normal" view in MS Word.

The top and left margins aren't displayed at all.

But page breaks *are* displayed (as a dotted line).

Is there a way to do that with SRVE?

Thanks.

-David
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

Look a mode in ActionTest:

Code: Select all

//Normal view mode (as one long page)
procedure OnePageMode (srve: TSRichViewEdit);
...
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Post by DavidRM »

Look at "Normal" view in MS Word. Notice that the editor doesn't display the blank paper above the top margin nor to the left of the left margin. The caret starts in the upper left corner.

Also notice that page breaks are marked with a dotted line.

That's what I want.

That's not what "one page mode" gives me.

Is there a way to achieve either of those?

Can I have the editor not display the blank space outside the top and left margins?

Can I have the editor display the page break as a dotted line?

Thanks.

-David
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

the Mode for document display by the continuous text, with a designation a dotted line of pages, now is not present.
In following updating we will add such possibility.
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Post by DavidRM »

I'll be looking forward to it.

Thanks.

-David
Post Reply