That was one problem, and here is another one: Location URL. I've put it into TPageControl onChanging procedure. It also works half-fine. My address field changes after I change the tab, but it changes to previous tab URL. To make it simply:
Here are tabs:
|Yahoo|Google|Lycos|NY Times|
I'm in Yahoo tab, but when I change it to e.g. Lycos then address field is changing to http://www.yahoo.com/ and then I click on Google and then I receive http://www.lycos.com address. I don't know how to fix it.
Here's the code:
- Code: Select all
procedure TMainform.WebBrowserTabsChanging(Sender: TObject;
var AllowChange: Boolean);
begin
WebAddress.Text := (WebBrowserTabs.ActivePage.Controls[1] as TWebBrowser).LocationURL;
end;