Hello,
i checked out wxWebView with wxWidgets 3.10 and wxWidgets 3.11.
It is far from what i see in edge, firefox or chrome. I use the bootstrap 4 in my webpages.
Is there a more browser similar alternative that can be used within the c++ wxWidgets universe ?
Or is there some trick to make this webview more browser compatible ?
example page:
https://getbootstrap.com/docs/4.0/examples/
Thank you
wxWebView
Re: wxWebView
What backend wxWebView uses is given by the platform.
E.g., on Windows, Internet Explorer is used, which maxes out on version 11 and also obviously depends on the version actually installed on the user's computer. If you are on MSW, I assume you set the compatibility mode as documented, to the value you need.
There is also a chromium backend in works, but it currently has some limitations...
E.g., on Windows, Internet Explorer is used, which maxes out on version 11 and also obviously depends on the version actually installed on the user's computer. If you are on MSW, I assume you set the compatibility mode as documented, to the value you need.
There is also a chromium backend in works, but it currently has some limitations...
Re: wxWebView
I assume you're under Windows.
wxWebView uses Internet Explorer 7 by default. The best you can get is IE 11 by setting a registry entry. (This is a Windows limitation, not from wxWidgets).
Check this article:
https://docs.microsoft.com/en-us/previo ... _emulation
The webview sample from wxWidgets has this small piece of code for it:You must replace the name of the .exe with yours!
There is also a Chromium backend, but i don't know what its current state is.
wxWebView uses Internet Explorer 7 by default. The best you can get is IE 11 by setting a registry entry. (This is a Windows limitation, not from wxWidgets).
Check this article:
https://docs.microsoft.com/en-us/previo ... _emulation
The webview sample from wxWidgets has this small piece of code for it:
Code: Select all
{
wxLogNull nolog; // suppress error messages
wxRegKey rk( wxT("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION") );
rk.SetValue( wxT("webview.exe"), 11001);
}
There is also a Chromium backend, but i don't know what its current state is.
Use the source, Luke!
Re: wxWebView
I changed my code using the reg settings and in fact, it looks much closer to chrome etc.
For me at an acceptable state.
Many thanks to you both!
For me at an acceptable state.
Many thanks to you both!