Zoom-Feature?

General TRichView support forum. Please post your questions here
Post Reply
dwaeber
Posts: 3
Joined: Mon Apr 24, 2006 2:07 pm

Zoom-Feature?

Post by dwaeber »

Hi,

is it possible to zoom the richview-display?

Thanks,

Daniel
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

No, currently it's not possible.
Zooming is implemented only in TRVPrintPreview component
waeberd
Posts: 8
Joined: Mon Sep 26, 2005 11:39 am

Post by waeberd »

Sergey Tkachenko wrote:No, currently it's not possible.
Zooming is implemented only in TRVPrintPreview component
Thanks for answering, Sergey.
Any plans to implement a zoom feature?

We've added a zooming feature in our app using the "ScaleBy" method on forms. Works fine, but no effect on richview components....

If it's not planned to implement this, I will have to find out some way to get an easy preview for zoom-addicts :)

Thanks again, Daniel
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Not in very near future.
Text can be scaled by changing value of RVStyle.TextStyles.PixelsPerInch.
But it does not affect images and tables.
waeberd
Posts: 8
Joined: Mon Sep 26, 2005 11:39 am

Post by waeberd »

Sergey Tkachenko wrote:Text can be scaled by changing value of RVStyle.TextStyles.PixelsPerInch.
Great! This was very helpful, thanks!!

Daniel
dave novo
Posts: 105
Joined: Wed Aug 31, 2005 2:13 am

Post by dave novo »

Note that pixelsPerInch also does not affect hardcoded spacings like margins etc.

If you are going to start, DO not set the Trichview properties directly. Create your own wrappers around the Trichview that takes the values you set (assumed at 100% zoom) and scales them before passing them along to the tRichview. Then anytime you make changes you set up the richview again. It works quite well if you can do it from the start, and not have to go back and figure out where you set all the properties manually.

Also, your wrapper has to handle things you may not have set, like margins, cell paddings etc.
Post Reply