HTMLViewer.Renderer

From Xojo Documentation

Read-Only Property (As Integer )


IntegerValue = aHTMLViewer.Renderer

New in 2012r1

Supported for all project types and targets.

Used to specify the rendering engine used on Windows. Choices are Native (0) or WebKit (1). You can only set this property in the Inspector for the control.

Notes

The Native renderer is Internet Explorer.

Using WebKit on Windows adds the entire Chromium Embedded Framework 3 (CEF3) engine to your app, increasing its size by about 100MB.

If you need plugins when using WebKit, add them to the WebKitPlugins folder in the Libs folder for your application.

Setting this property at runtime has no effect.

When using Native, Windows uses an older version of the Internet Explorer rendering engine. You can switch to a more recent version specifically for your app with code like this:

Var reg As New RegistryItem("HKEY_CURRENT_USER\SOFTWARE\Microsoft")
reg = reg.AddFolder("Internet Explorer")
reg = reg.AddFolder("Main")
reg = reg.AddFolder("FeatureControl")
reg = reg.AddFolder("FEATURE_BROWSER_EMULATION")
reg.Value(App.ExecutableFile.Name) = &h2710 ' Use IE 11 renderer