Beruflich Dokumente
Kultur Dokumente
interface
uses
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Button1: TButton;
Label2: TLabel;
Label3: TLabel;
Image1: TImage;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Button7: TButton;
Button8: TButton;
Button9: TButton;
Button10: TButton;
Button11: TButton;
Timer1: TTimer;
Timer2: TTimer;
Button12: TButton;
Timer3: TTimer;
Button13: TButton;
Button14: TButton;
Button15: TButton;
Memo1: TMemo;
Button16: TButton;
Button17: TButton;
Button18: TButton;
Button19: TButton;
MediaPlayer1: TMediaPlayer;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
a:integer;
b:integer;
implementation
{$R *.dfm}
begin
Showmessage(' Selamat '+ edit1.text +' dengan NIM '+ edit2.Text +' anda berhasil login ');
end;
begin
image1.Left:=image1.Left-3;
end;
begin
Image1.Left:=image1.Left+3;
end;
begin
image1.Top:=image1.Top-3;
end;
procedure TForm1.Button5Click(Sender: TObject);
begin
image1.Top:=image1.Top+3;
end;
begin
image1.Top:=image1.Top-3;
image1.Left:=image1.Left-3;
end;
begin
image1.Left:=image1.Left-3;
image1.Top:=image1.Top+3;
end;
begin
image1.Left:=image1.Left+3;
image1.Top:=image1.Top-3;
end;
begin
image1.left:=image1.Left+3;
image1.Top:=image1.Top+3;
end;
begin
image1.Left:=image1.Left+a;
image1.Top:=image1.Top+b;
if ((image1.left<=0) or (image1.left>=816))then
begin
a:= -a;
end;
if ((image1.top<=0) or (image1.top>=336))then
begin
b:= -b;
end;
end;
begin
a:=3;
b:=3;
timer1.Enabled:=False;
end;
procedure TForm1.Button10Click(Sender: TObject);
begin
image1.Left:=image1.Left+a;
image1.Top:=image1.Top+b;
if ((image1.left<=0) or (image1.left>=816))then
begin
a:= -a;
end;
if ((image1.top<=0) or (image1.top>=336))then
begin
b:= -b;
end;
end;
begin
image1.Left:=image1.Left+a;
begin
a:=-a;
end;
end;
procedure TForm1.Timer2Timer(Sender: TObject);
begin
image1.Left:=image1.Left+a;
begin
a:=-a;
end;
end;
begin
image1.top:=image1.top+b;
begin
b:=-b;
end;
end;
begin
image1.top:=image1.top+b;
begin
b:=-b;
end;
end;
begin
if button13.Caption='play' then
begin
button13.caption:='stop';
timer1.Enabled:=True;
end
else
begin
button13.Caption:='play';
timer1.Enabled:=false;
end
end;
begin
if button14.caption='play' then
begin
button14.Caption:='stop';
timer2.Enabled:=True;
end
else
begin
button14.Caption:='play';
timer2.Enabled:=false;
end
end;
begin
if button15.caption='play' then
begin
button15.Caption:='stop';
timer3.Enabled:=True;
end
else
begin
button15.Caption:='play';
timer3.Enabled:=false;
end
end;
begin
if button16.caption='myfoto' then
begin
button16.caption:='Ganti';
image1.Picture.LoadFromFile('2.jpg');
memo1.Lines.LoadFromFile('memo3.txt');
end
else
begin
button16.Caption:='myfoto';
image1.Picture.LoadFromFile('ema.jpg');
memo1.Lines.LoadFromFile('ema1.txt');
end;
end;
begin
image1.picture.LoadFromFile('2.jpg');
memo1.Lines.LoadFromFile('memo3.txt');
mediaplayer1.close;
mediaplayer1.Open;
mediaplayer1.play;
end;
begin
image1.picture.LoadFromFile('ema.jpg');
memo1.Lines.LoadFromFile('ema1.txt');
mediaplayer1.close;
mediaplayer1.Open;
mediaplayer1.play;
end;
begin
image1.picture.LoadFromFile('myfoto.jpg');
memo1.Lines.LoadFromFile('memoponaan.txt');
mediaplayer1.close;
mediaplayer1.Open;
mediaplayer1.play;
end;
begin
mediaplayer1.close;
mediaplayer1.Open;
mediaplayer1.play;
end;
procedure TForm1.Button21Click(Sender: TObject);
begin
mediaplayer1.close;
mediaplayer1.Open;
mediaplayer1.play;
end;
begin
mediaplayer1.close;
mediaplayer1.Open;
mediaplayer1.play;
end;
end.