Page 1 of 1

Zoom-Feature?

Posted: Wed Jun 07, 2006 12:53 pm
by dwaeber
Hi,

is it possible to zoom the richview-display?

Thanks,

Daniel

Posted: Wed Jun 07, 2006 6:45 pm
by Sergey Tkachenko
No, currently it's not possible.
Zooming is implemented only in TRVPrintPreview component

Posted: Wed Jun 07, 2006 8:18 pm
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

Posted: Thu Jun 08, 2006 12:36 pm
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.

Posted: Fri Jun 16, 2006 10:44 am
by waeberd
Sergey Tkachenko wrote:Text can be scaled by changing value of RVStyle.TextStyles.PixelsPerInch.
Great! This was very helpful, thanks!!

Daniel

Posted: Fri Jun 23, 2006 4:53 am
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.