HB_WebView (a cross-platform Webview library)
Posted: Thu Mar 13, 2025 11:35 pm
I have developed HB_WebView a Harbour wrapper for Webview library.
Webview library is a tiny cross-platform webview library for C/C++ to build modern cross-platform GUIs.
The goal of the Webview library is to create a common HTML5 UI abstraction layer for the most widely used platforms.
It supports two-way JavaScript bindings (to call JavaScript from C/C++ and to call C/C++ from JavaScript).
Now with HB_Webview you can easily bind HB/HMG functions with Javascript, that is, you can call any HB/HMG function from an HTML page.
Roberto's dream is now a reality!
With HB_Webview can now be easily bind with Roberto's JMG (https://www.hmgforum.com/viewforum.php?f=50).
Demos written in pure Harbor (cross-platform demos):
demo1.prg - Web browsing in Harbour
demo2.prg - Binding Harbour functions (calling HB functions from Javascript)
demo3.prg - Inspecting DBF files with Javascript
demo4.prg - Injecting PRG code written entirely in Harbour from JavaScript
demo5.prg - Querying SQLite from Javascript
demo6.prg: You can navigate the directory tree and open files that are in the list of allowed extensions (new instances of HB_WebView are created entirely from Javascript code).
Demos in HMG:
demo hmg.prg - is an integration of the previous examples integrated into the HMG environment (Windows platform demo)
See documentation in HB_WebView.pdf file.
I hope it is useful to you!
Best Regards,
Claudio
PS: in batch files attachment the compiler path was established as C:\hmg.3.6\
Webview library is a tiny cross-platform webview library for C/C++ to build modern cross-platform GUIs.
The goal of the Webview library is to create a common HTML5 UI abstraction layer for the most widely used platforms.
It supports two-way JavaScript bindings (to call JavaScript from C/C++ and to call C/C++ from JavaScript).
Now with HB_Webview you can easily bind HB/HMG functions with Javascript, that is, you can call any HB/HMG function from an HTML page.
Roberto's dream is now a reality!
With HB_Webview can now be easily bind with Roberto's JMG (https://www.hmgforum.com/viewforum.php?f=50).
Demos written in pure Harbor (cross-platform demos):
demo1.prg - Web browsing in Harbour
demo2.prg - Binding Harbour functions (calling HB functions from Javascript)
demo3.prg - Inspecting DBF files with Javascript
demo4.prg - Injecting PRG code written entirely in Harbour from JavaScript
demo5.prg - Querying SQLite from Javascript
demo6.prg: You can navigate the directory tree and open files that are in the list of allowed extensions (new instances of HB_WebView are created entirely from Javascript code).
Demos in HMG:
demo hmg.prg - is an integration of the previous examples integrated into the HMG environment (Windows platform demo)
See documentation in HB_WebView.pdf file.
I hope it is useful to you!
Best Regards,
Claudio
PS: in batch files attachment the compiler path was established as C:\hmg.3.6\