modern BrowserControl / WebView / HTML5

Discussion forum about all things Team Developer 7.x
memic
Germany
Posts: 27
Joined: 07 Mar 2017, 08:51
Location: Germany

modern BrowserControl / WebView / HTML5

Post by memic » 07 Mar 2019, 14:34

I need to Implement a WebView in our existing Software. We want to "embed" our HTML5 Web-Application in the Software.

The Problem is the QuickHTML or Browser ActiveX are Internet Explorer (11?) Views. This doesn't work very good with modern HTML5/CSS3 Apps.

Has anyone implemented Microsoft Edge or other "modern" Browser Control/View?
Is this possible in Team Developer?

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1204
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: modern BrowserControl / WebView / HTML5

Post by Dave Rabelink » 08 Mar 2019, 19:40

What exact issue do you have with the webpages?

Please have a look at this for more info:

TDWIKI -> cQuickHTML & Webbrowser: using document compatibility modes (IE7..IE11)
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

memic
Germany
Posts: 27
Joined: 07 Mar 2017, 08:51
Location: Germany

Re: modern BrowserControl / WebView / HTML5

Post by memic » 12 Mar 2019, 12:51

Hello Dave,

this is exactly the Example I have been using. The forced IE11 Mode ist working "good". But I have some CSS3 rules that are generaly not supported by IE.
Only Firefox, Chrome and Edge are working with some of my CSS3 Rules (for Example Tables with fixed header when scrolling).

I can live without it but it would be very very nice If we could maybe use the Edge Browser as a WebView.

I found this Microsoft Blog Post how to do it with .NET: https://blogs.windows.com/msedgedev/201 ... -wpf-apps/
But I am not a .NET Developer and I have no Idea where to start...

Do you think this could be possible with TeamDeveloper? Or should I abbandon the idea?

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1204
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: modern BrowserControl / WebView / HTML5

Post by Dave Rabelink » 13 Mar 2019, 08:14

So, yes. the WebBrowser control (IE) and QuickHTML are dead ends. Their support for modern features are getting worse and worse.

The EdgeHTML (WebView) looks promising, but you need Windows 10, which will reduce the platforms your application can run on.

Starting with TD 7.1, we can use WPF controls in Win32. This works for the WPF Webbrowser control. But the internals for the WPF component is still the old IE.
My guess is that you can use EdgeHTML (WebView) in TD 7.1 as WPF control also. But I did not try this yet.

(if someone here did try it, I would like to hear)

Another solution, which is maybe the best option when you need the application to run on different Windows OS versions, is to use CEF.
(Chromium Embedded Framework, CEF3)

https://bitbucket.org/chromiumembedded/cef

It has a C(++) API which could be used from TD, but the callbacks need to be handled.
I did not try this yet.

Another API which I did try in TD and is working : WebKitX ActiveX for CEF3

https://www.webkitx.com/

It is a COM wrapper around CEF.
But you need a license.


It would be nice if we as community could create a native TD CEF wrapper using the prebuild CEF C(++) API.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

clemdoc
Austria
Posts: 26
Joined: 08 Mar 2017, 09:51
Location: Austria

Re: modern BrowserControl / WebView / HTML5

Post by clemdoc » 13 Mar 2019, 11:17

That would be very very cool.
That being said, I can see no way that I could contribute but in my spare time and that is quite tied up too.
If things change however, I would certainly try to get some time budget to assist.
I suspect the issue will pop up in our product as well sooner or later.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests