Code:
unit Rendevouztd; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; Button5: TButton; Button6: TButton; Button7: TButton; Button8: TButton; Button9: TButton; Button10: TButton; Button11: TButton; Button12: TButton; Button13: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); procedure Button3Click(Sender: TObject); procedure Button4Click(Sender: TObject); procedure Button5Click(Sender: TObject); procedure Button6Click(Sender: TObject); procedure Button7Click(Sender: TObject); procedure Button8Click(Sender: TObject); procedure Button9Click(Sender: TObject); procedure Button10Click(Sender: TObject); procedure Button11Click(Sender: TObject); procedure Button12Click(Sender: TObject); procedure Button13Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin Button1.Visible:=false; Button2.Visible:=true; Form1.Color:= clBlack; end; procedure TForm1.Button2Click(Sender: TObject); begin Button2.Visible:=false; Button3.Visible:=true; Form1.Color:= clRed; end; procedure TForm1.Button3Click(Sender: TObject); begin Button3.Visible:=false; Button4.Visible:=true; Form1.Color:= clAqua end; procedure TForm1.Button4Click(Sender: TObject); begin Button4.Visible:=false; Button5.Visible:=true; Form1.Color:= clGreen; end; procedure TForm1.Button5Click(Sender: TObject); begin Button5.Visible:=false; Button6.Visible:=true; Form1.Color:= clWhite; end; procedure TForm1.Button6Click(Sender: TObject); begin Button6.Visible:=false; Button7.Visible:=true; Form1.Color:= clLime; end; procedure TForm1.Button7Click(Sender: TObject); begin Button7.Visible:=false; Button8.Visible:=true; Form1.Color:= clFuchsia; end; procedure TForm1.Button8Click(Sender: TObject); begin Button8.Visible:=false; Button9.Visible:=true; Form1.Color:= clBlue; end; procedure TForm1.Button9Click(Sender: TObject); begin Button9.Visible:=false; Button10.Visible:=true; Form1.Color:= clYellow; end; procedure TForm1.Button10Click(Sender: TObject); begin Button10.Visible:=false; Button11.Visible:=true; Form1.Color:= clSkyBlue; end; procedure TForm1.Button11Click(Sender: TObject); begin Button11.Visible:=false; Button12.Visible:=true; Form1.Color:= clSilver; end; procedure TForm1.Button12Click(Sender: TObject); begin Button12.Visible:=false; Button13.Visible:=true; Form1.Color:= clPurple; end; procedure TForm1.Button13Click(Sender: TObject); begin Button13.Visible:=false; Application.MessageBox('Thankz Bro...!!!','Pesan'); Close; end; end.
Tidak ada komentar:
Posting Komentar