scroll row and display the ruler with correct margins

General TRichView support forum. Please post your questions here
Post Reply
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

scroll row and display the ruler with correct margins

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use DataSet.AfterScrollEvent:

Code: Select all

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