Delphi Chromium组件中的onBeforeBrowse事件 [英] onBeforeBrowse event in Delphi Chromium component

查看:410
本文介绍了Delphi Chromium组件中的onBeforeBrowse事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在带有Chromium组件(版本306)的Delphi XE2中使用以下过程:

I'm trying to use following procedure in Delphi XE2 with Chromium component (version 306):

procedure TForm1.Chromium1BeforeBrowse(Sender: TObject;
  const browser: ICefBrowser; const frame: ICefFrame;
  const request: ICefRequest; navType: TCefHandlerNavtype; isRedirect: Boolean;
  out Result: Boolean);

,但它不起作用。 Delphi无法识别onBeforeBrowse事件。
Chromium似乎已正确安装,示例正在运行,并且我试图在GuiClient示例中添加onBeforeBrowse事件处理...
Delphi Chromium组件中是否存在该事件?

but it's not working. Delphi doesn't recognize onBeforeBrowse event. Chromium seems to be correctly installed, samples are working, and I'm trying to add onBeforeBrowse event handling in GuiClient sample... Is there that event in Delphi Chromium component ?

推荐答案

由于您已经描述了不起作用之类的问题,因此请执行所有步骤:

Since you've described your problem like not working, go through the all steps:

  • Step 1 - Where to check or create event handler
  • Step 2 - What happens when you don't have source paths configured
  • Step 3 - How to configure paths to the Chromium library source code
  • Step 4 - Don't forget to include the binaries into a project's visible place

这篇关于Delphi Chromium组件中的onBeforeBrowse事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆