Page 1 of 1

Synchronize ScaleRichV Rulers in Workshop

Posted: Fri Mar 09, 2018 9:36 pm
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

Re: Synchronize ScaleRichV Rulers in Workshop

Posted: Sun Mar 25, 2018 3:53 pm
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.