Synchronize ScaleRichV Rulers in Workshop

ReportWorkshop support and discussion (TRichView reporting add-on)
Post Reply
mikehi
Posts: 21
Joined: Sun Dec 23, 2012 6:13 am

Synchronize ScaleRichV Rulers in Workshop

Post by mikehi »

Hi,
Program developed based on you demos. Changed so many settings for my needs it is a bit confusing when I go back to the setting in the Demo's.

What is the best way to set the Ruler Setting in the Result Page to those set in the Design Page ?

Can these settings be stored in the document so that on closing and reopening the settings for that document are read in ?

Thanks
Mike
Sergey Tkachenko
Site Admin
Posts: 17553
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Synchronize ScaleRichV Rulers in Workshop

Post by Sergey Tkachenko »

Sorry for the delay.

Rulers do not have these settings (except for settings for changing their appearance).
They just reflect layout of the their editor.

In TRichViewEdit, the ruler changes left and right margins (and paragraph properties).
To save margins in RVF, include rvfoSaveLayout and rvfoLoadLayout in RVFOptions of these editors.
Also, to look identical, make sure that rvoClientTextWidth are included (or excluded) in Options of the both editor.

After you call rve.Format, call RVRuler.UpdateRulerMargins after.
Post Reply