Autor Beitrag
Finger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Mi 12.04.06 09:22 
Hallo zusammen! Ich woltle ma fragen wie ich eine Progress bar in meinen kleinen Browser einbinden kann! Ich bin absoluter anfänge und habe keine Ahnung! :D


ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleCtrls, SHDocVw, ComCtrls;

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    Edit1: TEdit;
    ProgressBar1: TProgressBar;
    procedure Edit1KeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if key= #13 then begin

Webbrowser1.Navigate(edit1.text);

end;
end;

end.


Danke für eure antworten!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 12.04.06 15:29 
schau dir ma das Ereignis OnProgress beim Webbrowser an. Das hilft dir.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Finger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Do 13.04.06 07:51 
Hab ich gemacht aber es lädt immer den ganzen balken und setzt ihn nicht mehr zrück hab einfach

ausblenden Delphi-Quelltext
1:
ProgressBar1.Position := ProgressBar1.Position + 100;					


eingegeben. ist mir klar das es immer 100 macht dann ist es voll! wie muss ich das korrekt einbinden?
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 22.04.06 19:05 
Kann man hier raus lesen:
ausblenden Delphi-Quelltext
1:
procedure TForm1.WebBrowser1ProgressChange(ASender: TObject; Progress, ProgressMax: Integer);					

Also:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
begin
  ProgressBar1.Max := ProgressMax;
  ProgressBar1.Position := Progress;
end;

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)