Using Chromium Edge WebView2 in Delphi or C++ Builder

纵然是瞬间 提交于 2020-02-24 11:54:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!