Is it possible to remove the bearing from a Twebbrowser?

Asked

Viewed 41 times

3

It is possible to remove the vertical and horizontal bearing from a TWebBrowser?

I searched several places of the internet, however, I did not find a valid answer, all the examples were false!

  • Put your code to the staff see if it can help?

1 answer

1

Disabling is a little tricky, there’s no property for that in the component! But I can help you by hiding the bars...

Add these 2 lines of code to Twebbrowser’s Ondocumentcomplete:

WebBrowser1.OleObject.Document.Body.Style.OverflowX := 'hidden';
WebBrowser1.OleObject.Document.Body.Style.OverflowY := 'hidden';

With this, after loading the Page the bars are hidden!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.