|
FAQ FOR WINDEV, WEBDEV AND WINDEV MOBILE |
|
| |
|
| | |
FAQ #10478, published on 2016-02-19 |
| How to make the HTML Control emulate IE11 ? |
The default setting of the HTML control is to be compatible with IE7. This might prove bothersome if your HTML code is relying on features not available in IE7.
There is a way to change the compatibility mode for IE11 and it's done by changing a registry value. This is the purpose of this code (you simply have to add this code in the project init code) :
sExeName is string nIEversion is int
// get the EXE name sExeName=fExtractPath( ExeInfo(exeName),fFileName+fExtension)
// read current IE compatibility setting nIEversion=RegistryQueryValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION",sExeName)
// changing setting if needed IF NOT nIEversion IN (10001,11001) THEN // neither IE10 or IE11 // force IE11 nIEversion=11001 //10001 for IE10, 11001 for IE11 IF NOT RegistrySetValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION",sExeName,nIEversion) THEN Error("Impossible de forcer la version de Internet Explorer",ErrorInfo()) END END
|
| |
| | | | | | Informations contained on this site are the exclusive property of PC SOFT. These informations and logos CANNOT be copied and/or used without a written authorization from PC SOFT. © PC SOFT 2004-2024.
|
| |
| |
| |
| |
| |
| |
|
|
|