Different View of the same Text in ScaleRichview

General TRichView support forum. Please post your questions here
Post Reply
tomr
Posts: 65
Joined: Wed Dec 09, 2020 9:36 am

Different View of the same Text in ScaleRichview

Post by tomr »

Hi RichView Support,
I have an additional editor form that uses a ScaleRichView to display the same document as my RichViewEdit.
The loaded RVF file is identical, and I have verified that the margins and paragraph indents are the same in both controls. The ZoomFactor is 100%, and PageViewMode is disabled.
Richview vs ScaleRichview.png
Richview vs ScaleRichview.png (36.92 KiB) Viewed 48 times
However, the document is rendered differently. As you can see in the screenshot, the line breaks occur at different positions, although both controls should display the same content.

I'm sure this worked correctly before. Since then, I have made many changes to my application, so I suspect that I may have accidentally changed a setting.

Is there any property or setting that could cause this difference in rendering?

Thank you for your help.

Kind regards,
Tom
tomr
Posts: 65
Joined: Wed Dec 09, 2020 9:36 am

Re: Different View of the same Text in ScaleRichview

Post by tomr »

Hello again,
I have created a small Delphi demo project that uses only the basic RichView components and reproduces the described effect.

Please find the attached ZIP file containing the demo project.

Stepts To Reproduce:
Start the Project --> Richview with RightMargin should be displayed
Richview Demo.png
Richview Demo.png (19.88 KiB) Viewed 32 times
Now Press the Button "ScaleRichview"
ScaleRichview with Margin should be Displayed
ScaleRichview Demo.png
ScaleRichview Demo.png (14.62 KiB) Viewed 32 times
The text is different.

Kind regards
Tom
Attachments
RichViewScaleTest.zip
(1.4 KiB) Not downloaded yet
Sergey Tkachenko
Site Admin
Posts: 18205
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Different View of the same Text in ScaleRichview

Post by Sergey Tkachenko »

This is the expected behavior.
Text in TRichView and TRichViewEdit is formatted and drawn using the screen DPI (or DPI specified in DocumentPixelsPerInch property). This ensures maximum text display quality.
Text in ScaleRichView is formatted using a high DPI value and drawn at DPI providing the required text size on the screen or printer. This ensures consistent text wrapping when drawing on any device.
Post Reply