Search code examples
delphiinternet-explorer-11delphi-xe7chromium-embedded

TWebBrowser doesn't display some pages correcty


My problem is that in TWebBrowser (Delphi XE7) there are some pages that doesn't display correctly when in Internet Explorer 11 display's ok. Example of pages that have the issues are https://www.whatismybrowser.com/

I think TWebBrowser is Internet Explorer basis and I don't know because display the page differently that IE11. Is possible solve this?

I search for another alternative components and I found Chromium (DCEF1 and DCEF3 https://github.com/hgourvest/dcef3) but only is compatible up to XE5. Do you know another components or a newer version of Chromium compatible with XE 7?


Solution

  • The embedded webbrowser defaults to Internet Explorer 7, but you can change that on a registry key, declaring the document mode that you want for your application.

    https://blogs.msdn.microsoft.com/patricka/2015/01/12/controlling-webbrowser-control-compatibility/ https://msdn.microsoft.com/library/ee330730(v=vs.85).aspx#browser_emulation