iesniffer OnWBProgressChange event
Return to Introduction  Previous page  Next page
Applies to
IESniffer component.  

Declaration
type  
  TIEWebBrowserProgressChange = procedure(Sender: TObject; const URL: Stringconst Browser: IWebBrowser2;  
    Progress, ProgressMax: Integer) of object;  
 
property OnWBProgressChange: TIEWebBrowserProgressChange  

Description
The OnWBProgressChange event occurs when the progress of a download operation is updated.  
 
Write an OnWBProgressChange event handler to provide visual feedback about the download process. For example, an OnWBProgressChange event handler can update a TProgressBar component or display the number of bytes downloaded so far.  
 
Browser is the IWebBrowser2 interface 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.  

See also
OnWBDocumentComplete, OnWBDownloadBegin and OnWBDownloadComplete events.