FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour New mod_harbour "viewer"
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
New mod_harbour "viewer"
Posted: Sun Jul 05, 2020 08:57 AM
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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: New mod_harbour "viewer"
Posted: Sun Jul 05, 2020 10:49 AM
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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 03:03 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 04:41 PM
Enrico,

It uses Microsoft Edge engine:

https://github.com/webview/webview
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 05:37 PM

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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 05:44 PM

Probably optional.

EMG

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 06:45 PM

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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 07:39 PM

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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New mod_harbour "viewer"
Posted: Mon Jul 06, 2020 07:45 PM

I just found that browser print doesn't work. Can it be supported?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New mod_harbour "viewer"
Posted: Tue Jul 07, 2020 07:18 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: New mod_harbour "viewer"
Posted: Tue Jul 07, 2020 08:26 PM

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

Continue the discussion