Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.005 c
6-1846
Weber
2002-11-06 04:10
2003.01.02
программа для админ. доступа к нету...


14-1906
Mr.Ice
2002-12-15 02:51
2003.01.02
Создается группа кодеров


14-1920
de2
2002-12-12 15:15
2003.01.02
подскажите компонент


1-1836
TCrash
2002-12-21 11:03
2003.01.02
TTreeView в качестве навигатора


14-1872
hatchy
2002-12-13 09:30
2003.01.02
Помгите с Random om................




   Наверх