SWV's primary purpose is to facilitate building HTML/JS GUIs for PureBasic desktop applications.
It aims to provide tight integration and seamless two-way communication between JS and PB.
Note that for security reasons, SWV is not intended, and not optimized for web browsing.
The SWV control will offer the following functions:
- SWV_New
SWV_SetUserAgent
SWV_SetLocation
SWV_GetLocation
SWV_SetHTML
SWV_GetHTML
SWV_SetDOM
SWV_GetDOM
SWV_RunJS
SWV_Resize
SWV_Free
A couple screenshots:
I will release SWV as a very easy-to-use DLL (for a reasonable price), if enough people are interested.
So please share your thoughts / questions / suggestions
However do keep in mind that I will be travelling the next few days and might take a while to respond.
Edit: Demo #1 is available!
https://www.radsix.com/files_swv/SWV_De ... ve_x86.zip (Download size: 91KB)
Unzip the package to a location of your choice (preserving the folder structure),
and either just run the demo executable, or compile it from source.
Notes:
This is a very early preview for demonstration purposes only, so be aware that many UI elements have no effect, and only a subset of the intended functionality has been implemented.
Have a look at the sample applications, and be sure to check out the test view by pressing F12.
Keep in mind that to build an HTML/JS UI for your desktop application, a UI framework is required in addition to SWV.
The following popular frameworks are confirmed to be supported so far:
- BootStrap
Pure.css
Bulma.css
Mint.css
If there's enough interest, a CEF (Chromium) version will follow, but of course keep in mind that resulting applications will be much much bigger (about 130MB for a simple Hello world application, vs 100-150KB for the current native version).