开发者

Delphi Embedded Chrome

开发者 https://www.devze.com 2023-03-04 05:19 出处:网络
is so开发者_Python百科mebody experience on using delphi embedded chrome? delphichromiumembedded.

is so开发者_Python百科mebody experience on using delphi embedded chrome? delphichromiumembedded. how to make get accessed to its HTML DOCUMENTS? like assign a value to Editbox


See demos\guiclient directory for an example.

Update: an example to set text of an input field on the 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;
0

精彩评论

暂无评论...
验证码 换一张
取 消