Здравствуйте, White_DeviL, Вы писали:
WD>Как настроить ProgressBar на загрузку страницы в twebbrouser?
А не пробовал пользоваться событием
OnProgressChange?
TCppWebBrowser::OnProgressChange
Occurs when the progress of a download operation is updated.
typedef void __fastcall (__closure *TCppWebBrowserProgressChange)(TObject* Sender, long Progress, long ProgressMax);
__property TCppWebBrowserProgressChange OnProgressChange = {read
=FOnProgressChange, write=FOnProgressChange};
Description
Write an OnProgressChange event handler to provide visual feedback about the download process. For example, an OnProgressChange event handler can update a TProgressBar component or display the number of bytes downloaded so far.
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.
Здравствуйте, Flamer, Вы писали:
F>Здравствуйте, White_DeviL, Вы писали:
WD>>Как настроить ProgressBar на загрузку страницы в twebbrouser?
F>А не пробовал пользоваться событием OnProgressChange?
ну да...виноват... проглядел
Здравствуйте, Flamer, Вы писали:
WD>>Как настроить ProgressBar на загрузку страницы в twebbrouser?
F>А не пробовал пользоваться событием OnProgressChange?
А кто-нибудь знает как работает это событие ? То есть как я понимаю при закачке какой либо странице сначала приходит ее размер ?
Следил за значением параметров этой функции: Max=10000; Position=100; 150; 200; 250; -1;
Почему эта процедура сначала вызывается часто, а затем нет ? Что определяет, что именно сейчас она должна вызваться ?
... << Играет Martin L. Gore — In a Manner of Speaking>>