SHDocVw.TWebBrowser.OnDownloadBegin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDownloadBegin: TNotifyEvent read FOnDownloadBegin write FOnDownloadBegin;

C++

__property System::Classes::TNotifyEvent OnDownloadBegin = {read=FOnDownloadBegin, write=FOnDownloadBegin};

Properties

Type Visibility Source Unit Parent
event published
SHDocVw.pas
SHDocVw.hpp
SHDocVw TWebBrowser

Description

Occurs when the Web browser starts downloading a document.

Write an OnDownloadBegin event handler to take specific action after the Web browser has located a document and immediately before it starts downloading the document. For example, use the OnDownloadBegin event to launch an animation control the represents downloading or 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.

See Also