简体   繁体   English

如何在TEmbeddedWB中禁止ActiveX警告对话框?

[英]How to suppress ActiveX warning dialogs in TEmbeddedWB?

In a Delphi XE8 VCL Form project using TEmbeddedWB , in EmbeddedWB1 for security reasons I set both DontExecuteActiveX and DontDownloadActiveX properties to True : 出于安全原因,在使用TEmbeddedWB的Delphi XE8 VCL Form项目中,出于安全原因,在EmbeddedWB1中,我将DontExecuteActiveXDontDownloadActiveX属性都设置为True

在此处输入图片说明

I have also disabled dialog-boxes in EmbeddedWB1 by setting EmbeddedWB1.DialogBoxes.DisableAll to True : 我还通过将EmbeddedWB1.DialogBoxes.DisableAll设置为True来禁用EmbeddedWB1中的对话框:

在此处输入图片说明

However, when I navigate to a page like: 但是,当我浏览至类似页面时:
https://www.iplocation.net/ https://www.iplocation.net/
or: 要么:
http://www.hostip.info/ http://www.hostip.info/
I still get ActiveX warning dialog boxes: 我仍然收到ActiveX警告对话框:

One or more ActiveX controls could not be displayed because either: 1) Your current security settings prohibit running ActiveX controls on this page, or 2) You have blocked a publisher of one of the controls. 一个或多个ActiveX控件无法显示,原因是:1)您当前的安全设置禁止在此页面上运行ActiveX控件,或者2)您已阻止其中一个控件的发布者。 As a result, the page might not display correctly. 结果,该页面可能无法正确显示。

So how can I suppress these dialog boxes? 那么如何隐藏这些对话框?

Locate Your EmbeddedWB component -> Events -> OnScriptError: fill these lines here: 找到您的EmbeddedWB组件->事件-> OnScriptError:在此处填充以下行:

continuescript:=true;
showdialog:=false;

It's much better that turnin on "Silent" mode, some webpages not loading correctly with " Silent:=True " parameter... 最好启用“静音”模式,某些网页无法使用“ Silent:=True ”参数正确加载...

Hope it helps 希望能帮助到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM