Delphi Embedded Chrome

前端 未结 1 722
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 10:47

is somebody experience on using delphi embedded chrome? delphichromiumembedded. how to make get accessed to its HTML DOCUMENTS? like assign a value to Editbox

相关标签:
1条回答
  • 2021-01-13 11:08

    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 讨论(0)
提交回复
热议问题