Platforms to show: All Mac Windows Linux Cross-Platform
Back to IEWebBrowserMBS class.
IEWebBrowserMBS.GetInternetExplorerHiDPI as Integer
Function:
Query whether HiDPI handling is enabled.
Notes: We can opt-in for your application to let HTMLviewer use proper resolution handling for web content.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | HTMLViewer Win | MBS Win Plugin | 20.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: We can opt-in for your application to let HTMLviewer use proper resolution handling for web content.
IEWebBrowserMBS.GetInternetExplorerVersion as Integer
Function:
Queries IE version used for this application.
Notes: Queries the Internet Explorer version to use for HTMLViewer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: Queries the Internet Explorer version to use for HTMLViewer.
Some examples using this method:
IEWebBrowserMBS.SetInternetExplorerHiDPI(Enable as Boolean) as Boolean
Function:
Sets whether HiDPI handling is enabled.
Notes:
We can opt-in for your application to let HTMLviewer use proper resolution handling for web content.
You may just call this in your app.open event.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | HTMLViewer Win | MBS Win Plugin | 20.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes:
We can opt-in for your application to let HTMLviewer use proper resolution handling for web content.
You may just call this in your app.open event.
IEWebBrowserMBS.SetInternetExplorerVersion(version as Integer) as Boolean
Function:
Sets IE version used for this application.
Example:
Notes:
By default Xojo uses IE7 for the HTMLViewer, even if you have version 11 enabled.
In a test on Windows 10, we get by default this browser version:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Win64; x64; Trident/7.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
and with setting it to 11000, we get this:
Mozilla/5.0 (Windows NT 6.2; Win64; x64; Trident/7.0; rv:11.0) like Gecko
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
// make sure we don't end up with Internet Explorer in version 7, which is default.
Dim v As Integer = IEWebBrowserMBS.GetInternetExplorerVersion
If v < 11000 Then // below version 11.0
Dim b As Boolean = IEWebBrowserMBS.SetInternetExplorerVersion(11000)
If b Then
MsgBox "Requested Internet Explorer version 11.0."
Else
MsgBox "Failed to set IE version?"
End If
End If
By default Xojo uses IE7 for the HTMLViewer, even if you have version 11 enabled.
Value | Description |
11001 | Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
11000 | IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11. |
10001 | Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive. |
10000 | Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10. |
9999 | Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
9000 | Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9. In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. |
8888 | Webpages are displayed in IE8 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks. |
8000 | Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8. In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. |
7000 | Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting the WebBrowser Control. |
In a test on Windows 10, we get by default this browser version:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Win64; x64; Trident/7.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
and with setting it to 11000, we get this:
Mozilla/5.0 (Windows NT 6.2; Win64; x64; Trident/7.0; rv:11.0) like Gecko
Some examples using this method:
The items on this page are in the following plugins: MBS Win Plugin.
