Different Views of too large images in Scalerichview and Richviewedit

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

Different Views of too large images in Scalerichview and Richviewedit

Post by tomr »

Hello Richview Support,
I have a problem displaying too large images in Scalerichviewedit. I have one Richviewedit and one ScaleRichviewedit.
Both of them have the following settings:
MinTextWidth := 16cm
MaxTextWidth := 16cm;
Options := Options - [rvoClientTextWidth];
In the RichviewEdit the image is visualized above the Min/MaxTextWidth.
ZuGroßesBildRE.png
ZuGroßesBildRE.png (6.4 KiB) Viewed 1808 times
In the ScaleRichviewEdit the image is not visualized above the Min/MaxTextWidth.
ZuGroßesBildSRE.png
ZuGroßesBildSRE.png (6.52 KiB) Viewed 1808 times
Is there a possibility to display the image in the same way as in the Richviewedit?

Best Regards
Tom
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Different Views of too large images in Scalerichview and Richviewedit

Post by Sergey Tkachenko »

In ScaleRichView, a size of pages is defined, and it does not depend on content.
Do you want to draw large object even outside the page?
There is no option for this. You can modify the source code: in SclRView.pas, comment the first call of

Code: Select all

SelectClipRgn(ACanvas.Handle, hRegion);
tomr
Posts: 21
Joined: Wed Dec 09, 2020 9:36 am

Re: Different Views of too large images in Scalerichview and Richviewedit

Post by tomr »

Hello Sergey,
no, I don't want to draw the large image outside the page. I would like to draw the picture outside the right margin.
I adjusted the right margin property from the richviewedit wrong.
I recreated this scenario in your demo and it worked fine.
DemoBeispiel.png
DemoBeispiel.png (14.74 KiB) Viewed 1780 times
Seems like I have to correct my margin and page settings.

Nevertheless thank you for your help.
Best regards
Tom
Post Reply