Jump to content
dmitrybv

How to work with the FMX.WebBrowser.TWebBrowser component correctly.

Recommended Posts

Good day.


I have Embarcadero® RAD Studio 12 Version 29.0.53982.0329


Tell me how to work with the FMX.WebBrowser.TWebBrowser component correctly
I drop TWebBrowser on the Form.


The code is written
 

procedure TMainForm.Button1Click(Sender: TObject);
begin
WebBrowser.Navigate('https://getbootstrap.com/docs/5.3/getting-started/introduction/');
end;


and as a result I get the following picture:

 

image.thumb.png.0127790a6e99b37e62900e1c04034d30.png


 

It looks like the browser is not processing the css and aside section of the page.

 

Share this post


Link to post

Hi,

 

On Windows, the component WebBrowser will use the underlying system rendering engine : By default, IE (!)  - You can use a more advanced one, such as Edge, by setting the TWebBrowser's property "WindowsEngine" in component's inspector. 

Warning : All of that is "windows" (+Edge) only, and behave differently on other platform.

If you have a recent Windows + Edge installed, and do not need an advanced use, it should be ok.

 

If you need more advanced use with more option I invite you to go see the chromium engine. If you are only on Windows, you can try edge webview runtime, from the same author, wich is (a little) simpler to use.

 

 

Share this post


Link to post
3 hours ago, Vincent Gsell said:

On Windows, the component WebBrowser will use the underlying system rendering engine : By default, IE (!)  - You can use a more advanced one, such as Edge, by setting the TWebBrowser's property "WindowsEngine" in component's inspector.

And if you run into problems with that, see:

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×