|
OnDownloadBegin event : This event occurs when the browser starts downloading a document.
Write an OnBeforeNavigate2 event handler to take an action after the browser has located the document and
immediately before it starts downloading the document.
For example, use the
OnDownloadBegin event to control a progress bar that is updated by an OnProgressChange event handler. The control can
then be stopped in an OnDownloadComplete event handler.
|
Note:
|
To take specific action when the Web browser looks up the resource, rather
than when it begins downloading, use the OnBeforeNavigate2 event. OnDownloadBegin occurs
shortly after OnBeforeNavigate2 .
|
procedure TForm1.EmbeddedWB1DownloadBegin(Sender: TObject);
begin
Progressbar1.Visible :
StatusBar1.Panels[0].Text := 'Downloading ' +EmbeddedWB1.LocationURL + '...';
end;
|