Hopefully a easy question.......
But I cannot figure it out. In the Preview Form, with zoom setting at 100%,
if you scroll the preview (via vertical scrollbar), then go to the next
page, the scroll position stays in the same place. How can you set this to
go back to position 0. I have tried on the following event:
procedure TfrmRptTranLogReport.rbTranLogReportPageRequest(Sender,
aPageRequest: TObject);
begin
rbTranLogReport.PreviewForm.VertScrollBar.Position := 0;
end;
I have placed a showmessage to try to locate the scrolled position, but it
is always 0.
Thanks in advance,
John DeMaira
if you scroll the preview (via vertical scrollbar), then go to the next
page, the scroll position stays in the same place. How can you set this to
go back to position 0. I have tried on the following event:
procedure TfrmRptTranLogReport.rbTranLogReportPageRequest(Sender,
aPageRequest: TObject);
begin
rbTranLogReport.PreviewForm.VertScrollBar.Position := 0;
end;
I have placed a showmessage to try to locate the scrolled position, but it
is always 0.
Thanks in advance,
John DeMaira
This discussion has been closed.
Comments
event. You'll need RB 7.01 or later to use this event, because RB was using
this Delphi event, but in RB 7.01 it was changed so that RB can use a
TppCommunicator on the TppViewer for this event and other events on the
TppViewer so that hte Delphi events are free to be assigned outside of RB's
internal implementation.
http://www.digital-metaphors.com/tips/ScrollToTopOnPageChange.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com