Page 1 of 1

Displaying ScaleRichView without Margins

Posted: Thu Jan 22, 2009 12:27 am
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

Posted: Thu Jan 22, 2009 5:08 pm
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

Posted: Thu Jan 29, 2009 9:12 pm
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

Posted: Fri Jan 30, 2009 12:10 am
by proxy3d
Look a mode in ActionTest:

Code: Select all

//Normal view mode (as one long page)
procedure OnePageMode (srve: TSRichViewEdit);
...

Posted: Fri Jan 30, 2009 1:50 am
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

Posted: Sat Jan 31, 2009 9:26 pm
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.

Posted: Sat Jan 31, 2009 10:38 pm
by DavidRM
I'll be looking forward to it.

Thanks.

-David