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:

  1. the Edge browser being installed
  2. 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:

扫码加入猫哥的AI群
最后修改:2025 年 09 月 30 日
点赞的人是最酷的