private
i:integer;{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
i:=10;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
label2.Caption := inttostr(i);
i:=i-1;
if i=-1 then
begin
radiobutton1.Enabled :=false;
radiobutton2.Enabled :=false;
radiobutton3.Enabled :=false;
radiobutton4.Enabled :=false;
button1.Enabled :=false;
timer1.Enabled :=false;
label4.Caption := ('Süreniz Bitti ! ! !');
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
radiobutton1.Enabled :=false;
radiobutton2.Enabled :=false;
radiobutton3.Enabled :=false;
radiobutton4.Enabled :=false;
button1.Enabled :=false;
if radiobutton1.Checked then
begin
timer1.Enabled :=false;
showmessage('bilemediniz !');
end;
if radiobutton2.Checked then
begin
timer1.Enabled :=false;
showmessage('tebrikler ! ! !');
end;
if radiobutton3.Checked then
begin
timer1.Enabled :=false;
showmessage('bilemediniz !');
end;
if radiobutton4.Checked then
begin
timer1.Enabled :=false;
showmessage('bilemediniz !');
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
end.
nazım demir
demirnazim@hotmail.com