有人有使用delphi嵌入式chrome的经验吗?Delphi铬嵌入式。
如何访问其 HTML 文档?就像给 Editbox 赋值一样
See 演示\guiclient目录为例。
更新:设置输入字段文本的示例iGoogle page:
procedure TMainForm.actDomExecute(Sender: TObject);
var
q: ICefDomNode;
begin
crm.Browser.MainFrame.VisitDomProc(
procedure (const doc: ICefDomDocument)
var
q: ICefDomNode;
begin
// "q" is the ID of the text input element
q := doc.GetElementById('q');
if Assigned(q) then
q.SetElementAttribute('value', 'Hello, world');
end
);
end;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)