this slowpoke moves

Web Browser Template

uses ComCtrls, OleCtrls, SHDocVw, Menus

//

procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key = VK_Return then
  begin
    WebBrowser1.Navigate(WideString(Edit1.Text));
    Button2.Enabled :=True;
    Button4.Enabled :=True;
    Form1.Caption :=(Edit1.Text);
    StatusBar1.Panels[0].Text :=('Finding Site...');
end;
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
  WebBrowser1.Navigate(WideString('https://www.google.de/?gws_rd=ssl'));
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Webbrowser1.Stop;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  WebBrowser1.GoBack;
  Button3.Enabled :=True;
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  WebBrowser1.GoForward;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  WebBrowser1.Silent := True;  // No Script Error
  WebBrowser1.Navigate(WideString('https://www.google.de/?gws_rd=ssl'));
  Button2.Enabled :=False;
  Button3.Enabled :=False;
  Button4.Enabled :=False;
end;

procedure TForm1.WebBrowser1DownloadComplete(Sender: TObject);
begin
  StatusBar1.Panels[0].Text :=('Done.');
end;

procedure TForm1.WebBrowser1DownloadBegin(Sender: TObject);
begin
  StatusBar1.Panels[0].Text :=('Finding Site...');
end;

Keine Kommentare:

Kommentar veröffentlichen

Beliebte Posts

Translate