1. Euphoria bindings for webview

Here is a wrapper I made for the webview library, which is a tiny cross-platform library for C/C++/Golang to build modern cross-platform GUIs.

Back in March the developer zserge migrated the Windows implementation from the classic MSHTML (Internet Explorer) to the new Chromium-based WebView2 control in the new version of Microsoft Edge.

It will also try to fallback onto the original EdgeHTML control if that's available.

Get it here: https://github.com/ghaberek/webview-euphoria

Example

include webview.e 
 
atom w = webview_create() 
webview_set_title( w, "Webview Example" ) 
webview_set_size( w, 480, 320 ) 
webview_navigate( w, "https://en.m.wikipedia.org/wiki/Main_Page" ) 
webview_run( w ) 
webview_destroy( w ) 

Screenshots

Windows Linux
https://raw.githubusercontent.com/ghaberek/webview-euphoria/main/screenshots/windows.png https://raw.githubusercontent.com/ghaberek/webview-euphoria/main/screenshots/linux.png

-Greg

new topic     » topic index » view message » categorize

2. Re: Euphoria bindings for webview

ghaberek said...

Here is a wrapper I made for the webview library, which is a tiny cross-platform library for C/C++/Golang to build modern cross-platform GUIs.

Back in March the developer zserge migrated the Windows implementation from the classic MSHTML (Internet Explorer) to the new Chromium-based WebView2 control in the new version of Microsoft Edge.

It will also try to fallback onto the original EdgeHTML control if that's available.

Get it here: https://github.com/ghaberek/webview-euphoria

Example

include webview.e 
 
atom w = webview_create() 
webview_set_title( w, "Webview Example" ) 
webview_set_size( w, 480, 320 ) 
webview_navigate( w, "https://en.m.wikipedia.org/wiki/Main_Page" ) 
webview_run( w ) 
webview_destroy( w ) 

Screenshots

Windows Linux
https://raw.githubusercontent.com/ghaberek/webview-euphoria/main/screenshots/windows.png https://raw.githubusercontent.com/ghaberek/webview-euphoria/main/screenshots/linux.png

-Greg

Looks pretty neat. Would it work under Firefox?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria bindings for webview

Hmmm.

1) DO NOT attempt to run on Windows without installing Microsoft Edge Insider, it totally hangs the whole system and requires a power-off reboot.

2) Oh good. Someone else has decided to have a 32-bit webview.dll and a 64-bit webview.dll, rather than (say) webview32.dll and webview64.dll. And of course the same for WebView2Loader.dll
Not only does it just crash silently with the wrong ones, but also they cannot be renamed. You can however get round it with win32/ and win64/ subdirectories I suppose, or only permit one.

3) Rather slow. Actually very slow and in fact ridiculously slow. Though it probably runs fine if you've got an SSD emulating 128GB of ram.

4) It really don't like attempts to resize it, and often hangs (thankfully, after MEI installed, not requiring a power-cycle reboot).

5) I don't really get it. Is it just a browser window? [and/or a way to write webpages that can't be run online in an actual browser?]

6) This sort of thing is enough to put me right off.

Nice try, but no thanks. Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu