OpenROAD sample code for WebView2.
WebDemos.xml is an Application Export in (indented) XML format. Import WebDemos.xml into Workbench to experiment with the sample code.
Web browser demo; address bar and button implemented in OpenROAD 4gl with a fixed-sized WebView2.
Injects HTML into WebView2. Does NOT require internet access.
PDF viewer.
PDF viewer with resizable window.
Displays a QR code using contents of OpenROAD entry field.
NOTE makes use of Google Chart API, this could be reimplemented without internet access by using the same technique as the WebView2Demo_html_callback demo and local js.
Has two seperate WebView2 viewports, from different websites mixing both html injection and URL loading.
HTML injection of a YouTube video, also see WebView2VideoURL_YouTube.
URL loading a video from Actian Academy https://academy.actian.com/
URL loading of a YouTube video, also see WebView2VideoHTML_YouTube.