AI摘要
本文介绍了一个使用Delphi编写的示例应用程序,该程序展示了如何使用`TEdgeBrowser` VCL组件。`TEdgeBrowser`是`TWebBrowser`的替代品,它使用Edge浏览器的WebView2控件。使用`TEdgeBrowser`需要安装Edge浏览器和WebView2控件加载器DLL。文章还提供了`TEdgeBrowser`组件事件处理程序的示例,并附有WebView2的文档链接。
EdgeBrowser demo
This sample Delphi application demonstrates the use of the TEdgeBrowser
VCL component.
TEdgeBrowser
is a successor to TWebBrowser
. Where TWebBrowser
uses the Internet Explorer WebBrowser control as its browser UI, TEdgeBrowser
uses Edge browser's WebView2 control. Because of this TEdgeBrowser
relies on:
- the Edge browser being installed
- the WebView2 control loader DLL being available (part of the Microsoft WebView2 SDK)
Please see the documentation for TEdgeBrowser
for full details on how to get it up and running with the Edge (Chromium) browser and the WebView2 browser control
The sample includes event handlers for all of the TEdgeBrowser
component's events and these mostly surface events of the WebView2 control itself.
WebView2 documentation can be found at: