<< Click to display table of contents >> TRVRuler.UpdateRulerMargins |
Change the ruler margins according to RichViewEdit's margins.
procedure UpdateRulerMargins;
If RulerType = rtHorizontal, this procedure sets the ruler's LeftMargin, RightMargin, PageWidth according to RichViewEdit.
If RulerType = rtVertical, this procedure sets the ruler's TopMargin, BottomMargin, PageHeight according to RichViewEdit.
If you use TRVRuler without RichViewActions, call this method:
•when the ruler is associated with the editor;
•any time when you call RichViewEdit.Format or Reformat.
If you use TRVRuler with RichViewActions, call this method in TRVAControlPanel.OnMarginsChanged event.
If RichViewEdit is TDBRichViewEdit, also call this method in DataSet.AfterScroll event