Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : TWebbrowser Navigating in loop and onDocumentComplete
| Subject: | TWebbrowser Navigating in loop and onDocumentComplete |
| Posted by: | "Eddie Shipman" (mr_delphi_developer at yahoo dot com) |
| Date: | 2 Jun 2006 13:41:03 |
How would I write this to allow processing of the wbDocumentComplete
event?
ShellWin := TShellWindows.Create(nil);
try
for i := 0 to ShellWin.Count-1 do
begin
try
ShellWin.Item(i).QueryInterface(IID_IWebBrowser2, IE);
try
URL := IE.LocationURL;
finally
wb.Navigate(URL);
end;
except
end;
end;
finally
ShellWin.Free;
end;
Basically, I don't want to navigate to the next URL until the
OnDocumentComplete event of wb is finished.
--