HB_WebView (a cross-platform Webview library)

User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

HB_WebView (a cross-platform Webview library)

Post by srvet_claudio »

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\
Attachments
hb_webview_6.rar
(6.55 MiB) Downloaded 318 times
Last edited by srvet_claudio on Wed Apr 02, 2025 12:56 am, edited 5 times in total.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Steed
Posts: 433
Joined: Sat Dec 12, 2009 3:40 pm

Re: HB_WebView (a cross-platform Webview library)

Post by Steed »

Thanks a lot !!!
teocoy
Posts: 4
Joined: Wed Mar 30, 2016 9:10 am

Re: HB_WebView (a cross-platform Webview library)

Post by teocoy »

Excelente iniciativa, muchas gracias por compartir
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by serge_girard »

Thanks and great to see you back!

Serge
There's nothing you can do that can't be done...
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by serge_girard »

This gives us new possibilities !
Very exited to have a new project for this...

Resizing is now standard!

Do you plan to extend or something. Is this a test-version or production ready? You plan manual or some basic instruction PDF?

Many thanks, so far it is working fine.

Serge
There's nothing you can do that can't be done...
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by srvet_claudio »

Hi Serge,

Yes, hb_webview is ready for production.

As for the documentation, I'm indebted. But it's very easy to use; the main functions of the lib are in the demos.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by serge_girard »

OK, I managed to change a bit and that worked fine.
Thanks again!

Serge
There's nothing you can do that can't be done...
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by serge_girard »

Claudio,

Is there a (short) way to 'Show pagesource' (Full HTML) like in Edge or Chrome? Rightclick on page...

Serge
There's nothing you can do that can't be done...
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by srvet_claudio »

Hi Serge,
and with devtools (ctrl+shift+i)?
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_WebView (a cross-platform Webview library)

Post by serge_girard »

Ctrl+Shift+I will open but not all elements...

I want complete HMTL to copy to clipboard and save as an HTML file in order to see/inspect result. Now i must click every arrow...
See att.
webv.png
webv.png (41.34 KiB) Viewed 4440 times
Not crucial but nice to have... or maybe some hidden shortcut?

Serge
There's nothing you can do that can't be done...
Post Reply