RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SHDocVw.TWebBrowserProgressChange Type

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

Pascal
TWebBrowserProgressChange = procedure (ASender: TObject; Progress: Integer; ProgressMax: Integer) of object;
C++
(ASender: TObject; Progress: Integer; ProgressMax: Integer) ( TWebBrowserProgressChange)();

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!