Recent

Author Topic: edgebrowser package  (Read 8179 times)

alaa123456789

  • Sr. Member
  • ****
  • Posts: 258
  • Try your Best to learn & help others
    • youtube:
edgebrowser package
« on: October 21, 2020, 09:11:42 pm »
Hi all,

Delphi,implemented edge browser as new component 

https://blogs.embarcadero.com/new-vcl-tedgebrowser-component-rad-studio-10-4/

is there anyone can make it available for lazarus users? it will be great add-on to Lazarus IDE.

thanks

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: edgebrowser package
« Reply #1 on: October 21, 2020, 11:29:49 pm »
Hi all,

it will be great add-on to Lazarus IDE.


Hi!

No - it wont be a great add-on.

As Embarcado writes the component relies on two M$-packages.
So it is Windows only.

This is against  the Lazarus idea "write once compile anywhere".

And I don't need another Chromium-/Chrome-copy on my system.

Winni

alaa123456789

  • Sr. Member
  • ****
  • Posts: 258
  • Try your Best to learn & help others
    • youtube:
Re: edgebrowser package
« Reply #2 on: October 23, 2020, 08:45:18 am »
click on that option and you might see WEB CONTROLS or something like that, select it and have it build a activexcontainer and component, it should install on the axtivex tab
thanks for your kind reply, i have tried this way ,please see what i got , it didnt find edge ,also it didnt come in activex tab

thanks

alaa123456789

  • Sr. Member
  • ****
  • Posts: 258
  • Try your Best to learn & help others
    • youtube:
Re: edgebrowser package
« Reply #3 on: October 30, 2020, 07:27:32 am »
hey guys,

i think lazarus have shortage in this , there is no component for web files , i really need it
please someone help with good component.

thanks

Thaddy

  • Hero Member
  • *****
  • Posts: 14157
  • Probably until I exterminate Putin.
Re: edgebrowser package
« Reply #4 on: October 30, 2020, 09:01:51 am »
Edge = chromium and we have chromium support.
Older versions of edge, based on MS own engine are deprecated by Microsoft.
If your Windows 10 is up-to-date, you can simply use the CEF package.
« Last Edit: October 30, 2020, 09:08:24 am by Thaddy »
Specialize a type, not a var.

Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: edgebrowser package
« Reply #5 on: November 05, 2020, 03:22:44 pm »
Webview2(Edge Browser as library) in Lazarus would be fine. You could use updated browser without delivering big files.
I imported type library for webview2 and i tried to do same as with ie-activexbrowser with no luck. I will look it later.
But if someone wants to try here example project with imported type library and download links.

alaa123456789

  • Sr. Member
  • ****
  • Posts: 258
  • Try your Best to learn & help others
    • youtube:
Re: edgebrowser package
« Reply #6 on: November 05, 2020, 05:37:00 pm »
Webview2(Edge Browser as library) in Lazarus would be fine. You could use updated browser without delivering big files.
I imported type library for webview2 and i tried to do same as with ie-activexbrowser with no luck. I will look it later.
But if someone wants to try here example project with imported type library and download links.
yeah this why i suggest it , but we need experts in this forum to help with that so everyone can benefit from it .

thanks 

MISV

  • Hero Member
  • *****
  • Posts: 772
Re: edgebrowser package
« Reply #7 on: March 30, 2021, 09:43:52 am »
I hope someone will implement support for webview2 - big advantage not having to ship big packages with exe (and using built-in Windows  browser also ensure your app always uses fully patched browser)

alaa123456789

  • Sr. Member
  • ****
  • Posts: 258
  • Try your Best to learn & help others
    • youtube:
Re: edgebrowser package
« Reply #8 on: March 30, 2021, 06:41:45 pm »
I hope someone will implement support for webview2 - big advantage not having to ship big packages with exe (and using built-in Windows  browser also ensure your app always uses fully patched browser)
i hope so ,we urge experts to help with this

thanks in advance

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: edgebrowser package
« Reply #9 on: March 30, 2021, 07:26:57 pm »
I agree this can be very handy. If I remember correctly there is a native browser for macos done by Phill. Now is missing Windows.

If not supported on Linux something is wrong (with Linux) but maybe in the end it will add some package that does the same... Maybe with Firefox...

MISV

  • Hero Member
  • *****
  • Posts: 772
Re: edgebrowser package
« Reply #10 on: April 08, 2021, 09:37:52 pm »

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: edgebrowser package
« Reply #11 on: April 08, 2021, 10:07:38 pm »
This is already working in Rust language:

https://github.com/Boscop/web-view

Windows   MSHTML or EdgeHTML
Linux   Gtk-webkit2
OSX   Cocoa/WebKit

I don't know how to do it for FPC but they have this cross platform browser solution for native applications. On Windows the final executable plus required libraries is less than 30 mb.

PierceNg

  • Sr. Member
  • ****
  • Posts: 369
    • SamadhiWeb
Re: edgebrowser package
« Reply #12 on: April 09, 2021, 02:38:05 am »
This is already working in Rust language:

https://github.com/Boscop/web-view

Windows   MSHTML or EdgeHTML
Linux   Gtk-webkit2
OSX   Cocoa/WebKit


Interesting... Implementing the FPC FFI to the underlying C library should not be difficult.

I played with CEF FPC/Delphi a while back. Results weren't encouraging.

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Re: edgebrowser package
« Reply #13 on: April 09, 2021, 09:44:18 am »
Hey all,

This is something that has intrigued me for quite a while and I've never had the courage to ask:

If the default widgetset is GTK, and GTK has had webkit for ages, why have we no bindings for it?

Am I missing something? If so please direct me somewhere I can be schooled about it :)

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

MISV

  • Hero Member
  • *****
  • Posts: 772
Re: edgebrowser package
« Reply #14 on: May 21, 2021, 10:59:14 am »
I have taken a look at these URLs:

check if runtime installed
https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution

some sample code assuming newer Delphi
https://stackoverflow.com/questions/52766249/using-webview-edgehtml-in-delphi-c-builder

some sample code assuming newer Delphi
https://stackoverflow.com/questions/66676662/webview2-tedgebrowser-updated-delphi-interface-e-g-icorewebview2controller2

Yet even those seem to assume a newer Delphi version... So not fully compatible with e.g. Lazarus... But it is a start. I love being able to use "newest available patched system browser" (evergreen) which is why I am not jumping on https://github.com/salvadordf/CEF4Delphi albeit it may end up being the final solution.

Is there anyone else who has begun the undertaking of implementing webview2? It seems like too big a task for a single person. For me at least I would need a lot of time to refresh myself with everything COM and really... Ton of stuff if I need to implement something as big as webview from scratch

 

TinyPortal © 2005-2018