SHDocVw.TWebBrowserProgressChange

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TWebBrowserProgressChange)(System::TObject* ASender, int Progress, int ProgressMax);

Properties

Type Visibility Source Unit Parent
typedef public SHDocVw.hpp SHDocVw SHDocVw

Description

TWebBrowserProgressChange is the type for the OnProgressChange event handler on TWebBrowser.

Sender is the Web browser control that is in the process of downloading a document.

Progress indicates how much of the document has already been downloaded, on a scale of 0 to ProgressMax. When Progress is –1, the operation is finished.

ProgressMax indicates the total size of the download operation.

Tip: To calculate the percentage of progress to show in a progress indicator (when Progress is not –1), multiply the value of Progress by 100 and divide by the value of ProgressMax.