unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
OleCtrls, SHDocVw, StdCtrls, ExtCtrls, ActnList, ImgList, ComCtrls,
Menus, ToolWin;
type
TForm1 =
class(TForm)
WebBrowser1: TWebBrowser;
Button1: TButton;
procedure WebBrowser1TitleChange(Sender: TObject;
const Text: WideString);
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
URL:
String;
Einloggen:
String
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.WebBrowser1TitleChange(Sender: TObject;
const Text: WideString);
begin
Form1.Caption := '
MyBrowser - '+Text;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
URL := '
http://localhost/messenger/';
Einloggen := '
messi_login.php';
URL := Form1.URL + Einloggen;
WebBrowser1.Navigate(
URL);
end;
end.