问题
Now that the Microsoft Chromium Edge is final, is it possible to use it in Delphi or C++ Builder?
As I understand it is based on a WebView2
component.
Is there a component such as TWebView2
or will Embarcadero provide one? Is there an example how to host WebView2 in Delphi / C++ Builder?
Is it enough to install the latest Edge version so the app can utilize it?
There was an example for the older version - EdgeHTML - here: Using WebView (EdgeHTML) in Delphi / C++ Builder
回答1:
You can use WebView2 in your application.
Is there an example how to host WebView2 in Delphi / C++ Builder?
For samples of how to host WebView2 in your application using C++, please refer to Webview2 Samples.
Is it enough to install the latest Edge version so the app can utilize it?
You will also need to install Webview2 SDK as well as Microsoft Edge(Chromium).
For other details about using Webview2, please refer to Microsoft Edge WebView2.
Notes: Webview2 is still in preview phase, breaking changes could happen in the feature releases.
来源:https://stackoverflow.com/questions/60018071/using-chromium-edge-webview2-in-delphi-or-c-builder