Page 1 of 1

New mod_harbour "viewer"

PostPosted: Sun Jul 05, 2020 8:57 am
by Antonio Linares
New mod_harbour "viewer" allows you to use your mod_harbour apps as "desktop" apps, without having to use a web browser (this is the basic concept of "electron")

https://github.com/FiveTechSoft/mod_harbour/tree/master/viewer

Simply download viewer.exe and webview2loader.dll
syntax: viewer.exe url

This is the technique used by Microsoft vscode, WhatsApp desktop and many other modern apps:
Just one app for the desktop and for the web

Image

Re: New mod_harbour "viewer"

PostPosted: Sun Jul 05, 2020 10:49 am
by Otto
Dear Antonio,
Thank you so much. This now enables so many new opportunities.
I just tested WINHOTEL web with the new viewer.
It can now be seamlessly integrated into my desktop application.
Best regards,
Otto

Image

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 3:03 pm
by Enrico Maria Giordano
This is interesting, but I would like to know on which browser the viewer is based. Isn't dangerous to navigate the web without protection?

EMG

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 4:41 pm
by Antonio Linares
Enrico,

It uses Microsoft Edge engine:

https://github.com/webview/webview

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 5:37 pm
by Enrico Maria Giordano
Ok, great. Another question: it would be much better if there were a statusbar showing the url of the link we are about to click.

EMG

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 5:44 pm
by Enrico Maria Giordano
Probably optional.

EMG

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 6:45 pm
by Otto
Hello Enrico,
I copy this from SLACK:

Angel Pais 18:32 Uhr
First sight advantages: users can't write anything on the address bar, users can't hit the back button

Best regards,
Otto

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 7:39 pm
by Enrico Maria Giordano
Yes, I agree: no address bar and no back button. And if one is restricted to a known application, even the staturbar can be avoided, after all.

EMG

Re: New mod_harbour "viewer"

PostPosted: Mon Jul 06, 2020 7:45 pm
by Enrico Maria Giordano
I just found that browser print doesn't work. Can it be supported?

EMG

Re: New mod_harbour "viewer"

PostPosted: Tue Jul 07, 2020 7:18 am
by Antonio Linares

Re: New mod_harbour "viewer"

PostPosted: Tue Jul 07, 2020 8:26 pm
by Otto
Dear Antonio,

Since viewer.exe is not working for me on WINDOWS 2012 servers, I downloaded this project for a test.

https://github.com/pmuellr/AnyViewer

This viewer works for me. But I don't know how to integrate my own website.
This also has PRINT option.
Maybe you can setup this one.

Best regards,
Otto