Delphi 中的 Gecko 2 ActiveX Control VCL 组件?
如何将 Gecko 2(在 Firefox 2 中使用)活动控件导入到组件选项板中,以便在设计时将其添加到我的表单中?
基本上,我想要类似 TWebBrowser 组件的东西,但不使用 Internet Explorer。我也不想要过时的 Mozilla 控件 ( http://www.iol.ie/ ~locka/mozilla/mozilla.htm )或适用于 Delphi 的 Gecko SDK,它们均适用于 1.x (不是 2.x )并且不再维护。
预先感谢各位, 丹尼尔.
PS:我使用的是Delphi 2010。
How can I import the Gecko 2 (used in Firefox 2) Active control into the component palette so I can add it to my form at design-time?
Basically, I want something like a TWebBrowser component, but not using Internet Explorer. Nor do I want the outdated Mozilla Control ( http://www.iol.ie/~locka/mozilla/mozilla.htm ) or the Gecko SDK for Delphi, which are both for 1.x ( not 2.x ) and are not maintained any more.
Thanks in advance guys,
Daniel.
P.S: I'm using Delphi 2010.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我现在也在寻找类似的东西。经过大量调查,我了解到:
他们在该页面上的 Mozilla 浏览器组件已经过时,但他们确实使用名为 XULRunner 的东西构建了一个最新的组件。只需下载 XULRunner 二进制文件,该组件就在那里。
但它不再被积极开发,这意味着 ActiveX 控件本身的功能保持大致相同。
该组件的最小安装大小似乎从 4 MB 跃升至至少 10 MB(无需重新编译)。
鉴于 Mozilla Embedding 的卖点之一是大小,现在(~16 mb)是与 IE6 相当(大约 24 mb)。
该组件存在一些问题,即,将其导入 Delphi 后,我发现它无法正确处理选项卡。在其中使用 Tab 键只会将您从其中退出,而不是遍历网页控件。另外,当您聚焦任何页面控件时,组件本身不会获得焦点。
上一个问题对我来说是一个大问题,但我现在正在调查源代码,如果我设法修复它,我将向 XULRunner 提交补丁。修复后,组件应该非常可用并且是最新的,只是不要使用 XULRunner 1.9.2.x,因为它会左右抛出访问冲突(毫无疑问,这是一个稳定的版本!)。 XULRunner 1.9.1.x 工作得很好。
I am looking too for something like this just now. After much investigation, this is what I learned:
The Mozilla Browser component they have on that page is outdated, but they do build an up-to-date component with a thing called XULRunner. Just download XULRunner binaries and the component is there.
But it's not being actively developed anymore, meaning the functionality of the ActiveX control itself stays roughly the same.
Minimal installation size for the component seems to have jumped from 4 megabytes to at least 10 megabytes (without recompilation).
Given that one of the selling point of Mozilla Embedding was the size, now (~16 mb) it's comparable to IE6 (roughly 24 mb).
There are some problems with the component, namely, after importing it into Delphi I have found out it does not handle Tabs correctly. Tabbing while inside of it just tabs you out of it instead of iterating through the web page controls. Additionally, the component itself does not get focus when you focus any of the page controls.
Last issue was a deal-breaker for me, but I'm investigating the source now and I'm going to submit a patch to XULRunner if I manage to fix it. With it fixed the component should be pretty usable and up to date, just don't use XULRunner 1.9.2.x because it throws access violations left and right (that's one stable release, no doubts!). XULRunner 1.9.1.x works just fine.
AFAIK Firefox 没有其他解决方案。
但是 google chrome 还有另外两种可能性:
Google chrome 框架
http://www.progdigy.com/?p=116
Chromium 嵌入
http://code.google.com/p/delphichromiumembedded
AFAIK there is no other solution with firefox.
But there are two other possibilities with google chrome:
Google chrome frame
http://www.progdigy.com/?p=116
Chromium Embeded
http://code.google.com/p/delphichromiumembedded