Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.01.02;
Скачать: CL | DM;

Вниз

Как грамотно обработать событие OnProgressChange у WebBrowser а?   Найти похожие ветки 

 
Дмитрий К.К.   (2002-11-04 18:25) [0]

Делаю таким образом:

procedure TForm1.WebBrowser1ProgressChange(Sender: TObject; Progress,
ProgressMax: Integer);
begin
Progressbar1.Max := Progressmax;
Progressbar1.Position := Progress;
end;

Однако периодически выскакивает ошибка "Invalid floating point operation" :(
Как с ней биться?


 
Дмитрий К.К.   (2002-11-05 16:28) [1]

Up!


 
Андрей Прокофьев ©   (2002-11-05 16:35) [2]

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.


 
Андрей Прокофьев ©   (2002-11-05 16:35) [3]

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.


 
Дмитрий К.К. ©   (2002-11-06 09:02) [4]

2Андрей Прокофьев

Спасибо, Ваша справка очень помогла :)



Страницы: 1 вся ветка

Текущий архив: 2003.01.02;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.009 c
6-1851
X-shadow
2002-11-05 06:16
2003.01.02
Вопрос про WinSock и отправку письма.


1-1812
ТУПОЙ
2002-12-19 18:23
2003.01.02
Application Events


1-1803
AVR
2002-12-19 12:05
2003.01.02
QReport: Access violation... при отчёте > 1страница.


1-1813
id_privin
2002-12-20 17:08
2003.01.02
Два потока пользовательского интерфейса


3-1750
andrewsanswer
2002-12-10 18:35
2003.01.02
Проблемы с Update