Save and restore left/right margin?
Posted: Mon Apr 30, 2012 1:44 pm
Windows 7, Delphi 2010, RichView 13.8
Please don't beat me, but I can't get it run:
In a form there is a TDBRichViewEdit and a TRVRuler. Everything works fine. When the user moves the ruler, left and/or right margin is set and the text in the TDBRichViewEdit formatted accordingly.
In the RVFOptions the rvoSaveLayout and rvoLoadLayout properties are checked to True.
After the record is saved to the database and loaded again the left and right margins are lost.
I searched this forum and found several things like
RVRuler1.UpdateRulerMargins in the RVAControlPanel1MarginsChanged(...) event - but this event is never fired
or
TDBRichViewEdit1.Format
Nothing of these helps.
What has to be done to save and load the formerly set ruler margins?
---
Another thing regarding the ruler:
Say, for getting a real imagination on how a later print output would look like, the right margin is set at 18 cm. Now, when sizing the window horizontally the right margin of the ruler also moves, and also the text. How can the margin be fixed to the desired position, independantly of widening the window size?
Best regards
Joe
Please don't beat me, but I can't get it run:
In a form there is a TDBRichViewEdit and a TRVRuler. Everything works fine. When the user moves the ruler, left and/or right margin is set and the text in the TDBRichViewEdit formatted accordingly.
In the RVFOptions the rvoSaveLayout and rvoLoadLayout properties are checked to True.
After the record is saved to the database and loaded again the left and right margins are lost.
I searched this forum and found several things like
RVRuler1.UpdateRulerMargins in the RVAControlPanel1MarginsChanged(...) event - but this event is never fired
or
TDBRichViewEdit1.Format
Nothing of these helps.
What has to be done to save and load the formerly set ruler margins?
---
Another thing regarding the ruler:
Say, for getting a real imagination on how a later print output would look like, the right margin is set at 18 cm. Now, when sizing the window horizontally the right margin of the ruler also moves, and also the text. How can the margin be fixed to the desired position, independantly of widening the window size?
Best regards
Joe