This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
How can I make the TWebBrowser component display a progress bar?
Answer:
The TWebBrowser component cannot display a progress bar on its own. You need to add a TProgressBar component from the Win32 component palette and hook into the TWebBrowser.OnProgressChange event as shown in the code below.
You don't like the formatting? Check out SourceCoder then!
Send a message to
Subject
Comments:
2009-11-30, 09:12:15
anonymous from Serbia
procedure TForm1.WebBrowser1ProgressChange(Sender: TObject; Progress,
ProgressMax: Integer);
begin
if Progress>0 then
begin
ProgressBar1.Max:= ProgressMax ;