Page 1 of 1

scroll row and display the ruler with correct margins

Posted: Mon Jan 23, 2012 10:30 am
by alexandreq
Hello

I have 20 rows in my access table. All rows I have text that were created in DBSRichViewEdit, each one has a proper configuration margins saved. When I browse my records, I notice that the text is displayed with the margins saved but the rulers don't obey the configuration margin of each my text.

How to display in the ruler the correct configuration of each text saved?

Thanks

Posted: Mon Jan 23, 2012 3:08 pm
by Sergey Tkachenko
Use DataSet.AfterScrollEvent:

Code: Select all

procedure TForm1.Table1AfterScroll(DataSet: TDataSet);
begin
  RVRuler1.UpdateRulerMargins;
end;