Use TChromium to make a browser

1

I want to use TChromium to make a browser with Delphi . But I can not access any page with it. I have already used the commands:

Chromium1.Load('www.terra.com.br');

Also:

Chromium1.Browser.MainFrame.LoadUrl('www.terra.com.br');

And it will not !!

Does anyone know how to use this component?

    
asked by anonymous 06.11.2017 / 17:08

1 answer

2

Set the property DefaultURL to the path you want to open with home page.

Already to load other pages use:

From Chromium1.Browser.MainFrame.LoadUrl('www.google.com.br);

For Chromium1.Browser.MainFrame.LoadUrl('https://www.google.com.br/);

That is, you have to use the absolute path for it to load!

Note: The LoadString method is for you to define a fixed homepage that you have created (your own html).

I used Delphi Chromium Embedded 3 to mount this response.

    
07.11.2017 / 11:14