TWebBrowser scrollbar

2

How can I leave the scroll bar at the end of TWebBrowser ??

Or do you know of any other component that interprets and displays html?

Please help help!

    
asked by anonymous 07.01.2016 / 09:14

1 answer

1

You can interact with the Document loaded in TWebBrowser as follows:

Create 2 variables of type Integer , one to control each bar, vertical and horizontal!

var
  vVertical,
  vHorizontal : Integer;
begin
  vVertical   := 0;
  vHorizontal := 100;
  WebBrowser1.OleObject.Document.ParentWindow.ScrollBy(vVertical, vHorizontal);
end;

Positive and Negative integer values can be used to move the bar up or down, to the left or to the right!

I await Feedback!

    
07.01.2016 / 11:04