Recent

Author Topic: My new project : WebView4Delphi  (Read 10263 times)

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
My new project : WebView4Delphi
« on: December 03, 2021, 11:03:56 pm »

I just published a new project in GitHub called WebView4Delphi.

WebView4Delphi allows you to embed Chromium based web browsers in your Delphi or Lazarus applications using the WebView2 runtime.
It uses the latest stable version of the WebView2 nuget package 1.0.1054.31.

I used many of the tricks I learned creating CEF4Delphi and you will notice many similarities if you used it.

I still have to write the documentation but you can build the available demos to see it working in VCL, FMX and Lazarus apps.

There are a few things pending like the "windowless mode".

It's being distributed with a simple MIT license so anyone can do whatever s/he wants with it.
 
https://github.com/salvadordf/WebView4Delphi
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

loaded

  • Hero Member
  • *****
  • Posts: 824
Re: My new project : WebView4Delphi
« Reply #1 on: December 04, 2021, 08:06:02 am »
salvadordf , thanks for your detailed work. I think you did a great job.
I used many of the tricks I learned creating CEF4Delphi and you will notice many similarities if you used it.
We use CEF4Delphi in our projects. It was a bit difficult in the beginning, but now it works very stable and smoothly.
While we're on the subject, I'd like to thank you here. Respects.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: My new project : WebView4Delphi
« Reply #2 on: December 04, 2021, 09:08:08 am »
I just published a new project in GitHub called WebView4Delphi.
Hi salvadordf.

This is a great job. The package was installed successfully, but ... when I try to run any demo I always get some error
Code: Pascal  [Select][+][-]
  1. Project TabbedBrowser raised exception class 'Exception' with message:
  2. Failed to create win32 control, error: 1407 : �� ������� ����� ����� ����.
  3.  
  4.  In file 'win32\win32wscontrols.pp' at line 225
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Re: My new project : WebView4Delphi
« Reply #3 on: December 04, 2021, 10:53:12 am »
Please, download WebView4Delphi again from GitHub.

I just fixed an issue with the ".ignore" file and now all the required files are included in the package.

Alse make sure you install the evergreen WebView2 runtime before executing the demos :
https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: My new project : WebView4Delphi
« Reply #4 on: December 04, 2021, 02:11:30 pm »

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

alaa123456789

  • Sr. Member
  • ****
  • Posts: 260
  • Try your Best to learn & help others
    • youtube:
Re: My new project : WebView4Delphi
« Reply #6 on: December 04, 2021, 06:00:33 pm »
thanks for your efforts , actually this what we have asked on many topics on this forum , you have done great job wish you the best .
wish to be added to online package manger to be easier for all users .

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: My new project : WebView4Delphi
« Reply #7 on: December 04, 2021, 07:27:09 pm »
Q:
does it need NuGet package _or_ MS site package, or does it need both?

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Re: My new project : WebView4Delphi
« Reply #8 on: December 04, 2021, 07:51:37 pm »
If you have Windows 11 then you already have the "evergreen" version of the Microsoft Edge WebView2 Runtime installed in your computer but older Windows versions need to install it. Download it from here :
https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section

Read the license carefully and pay special attention to the 3.a, 3.b, 9.a and 9.b points because your users might not like what Microsoft is doing.

The WebView4Delphi demos are configured to use the "evergreen" version.

WebView4Delphi loads the WebView2Loader.dll library found inside the Microsoft.Web.WebView2 NuGet package version 1.0.1054.31 but I already extracted that DLL and copied it into the bin32 abd bin64 directories, where the demo executables are automatically created.
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: My new project : WebView4Delphi
« Reply #9 on: December 04, 2021, 07:58:39 pm »

alaa123456789

  • Sr. Member
  • ****
  • Posts: 260
  • Try your Best to learn & help others
    • youtube:
Re: My new project : WebView4Delphi
« Reply #10 on: July 16, 2023, 10:53:19 am »

I just published a new project in GitHub called WebView4Delphi.

WebView4Delphi allows you to embed Chromium based web browsers in your Delphi or Lazarus applications using the WebView2 runtime.
It uses the latest stable version of the WebView2 nuget package 1.0.1054.31.

I used many of the tricks I learned creating CEF4Delphi and you will notice many similarities if you used it.

I still have to write the documentation but you can build the available demos to see it working in VCL, FMX and Lazarus apps.

There are a few things pending like the "windowless mode".

It's being distributed with a simple MIT license so anyone can do whatever s/he wants with it.
 
https://github.com/salvadordf/WebView4Delphi
could you please add it to online package manager

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Re: My new project : WebView4Delphi
« Reply #11 on: July 16, 2023, 05:03:56 pm »
Hi,

I just submitted WebView4Delphi to the Online Package Manager.
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

alaa123456789

  • Sr. Member
  • ****
  • Posts: 260
  • Try your Best to learn & help others
    • youtube:
Re: My new project : WebView4Delphi
« Reply #12 on: July 17, 2023, 09:11:30 pm »
Hi,

I just submitted WebView4Delphi to the Online Package Manager.

not yet there

 

TinyPortal © 2005-2018