I found the brilliant Delphi Chromium project for embedding Chrome in a Delphi form. It works well in Delphi7 after a bit of hacking and I can get the demo app running.
The problem is that mainframe only loads after the page has loaded.
For one thing, you need to do:
if Assigned(Chromium2.Browser.MainFrame)
then Chromium2.Browser.MainFrame...
However, that is not the preferred way to navigate, but instead you should do:
Chromium1.Load( theUrl );
If you still want to use MainFrame
, do it in OnLoadEnd
event.