Synchronize ScaleRichV Rulers in Workshop

A reporting tool based on TRichView
Post Reply
mikehi
Posts: 11
Joined: Sun Dec 23, 2012 6:13 am

Synchronize ScaleRichV Rulers in Workshop

Post by mikehi » Fri Mar 09, 2018 9:36 pm

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: 13966
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Synchronize ScaleRichV Rulers in Workshop

Post by Sergey Tkachenko » Sun Mar 25, 2018 3:53 pm

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