Toplam 2 sonuçtan 1 ile 2 arasındakiler gösteriliyor.

Konu: Kronometre

  1. #1
    TUĞGENERAL
    Üyelik tarihi
    Oct 2008
    Bulunduğu yer
    İnönü...
    Mesajlar
    7,492
    Forum Katkısı:
    42

    Standart Kronometre

    Kod:
    geliştirilmiş kronometre programı
    unit Unit1;

    interface

    uses
    Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
    Dialogs, StdCtrls, ExtCtrls;

    type
    TForm1 = class(TForm)
    Edit1: TEdit;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    Edit2: TEdit;
    Edit3: TEdit;
    Label2: TLabel;
    Label1: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Button5: TButton;
    Label5: TLabel;
    Timer1: TTimer;
    Timer3: TTimer;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure Button4Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button5Click(Sender: TObject);
    procedure FormShow(Sender: TObject);

    procedure Timer3Timer(Sender: TObject);

    private
    c,b,a,i:integer;{ Private declarations }
    public
    { Public declarations }
    end;

    var
    Form1: TForm1;
    adim:integer;


    implementation

    {$R *.dfm}

    procedure TForm1.Button1Click(Sender: TObject);
    begin
    timer1.Enabled:=true;
    button1.Enabled :=false;
    button2.Enabled :=true;
    end;
    procedure TForm1.Button2Click(Sender: TObject);
    begin
    timer1.Enabled:=false;
    button2.Enabled :=false;
    button3.Enabled :=true;
    button4.Enabled :=true;
    end;

    procedure TForm1.Timer1Timer(Sender: TObject);
    begin
    edit3.Text:="+inttostr(i);
    i:=i+1;
    if i=99 then
    begin
    i:=0;
    edit2.Text:=" + inttostr(a+1);
    a:=a+1;
    end;
    if a=60 then
    begin
    a:=0;
    i:=0;
    edit1.Text:=" +inttostr(b+1);
    b:=b+1;
    end;
    end;
    procedure TForm1.FormCreate(Sender: TObject);

    var
    region: HRgn;
    begin
    region:=CreateEllipticRgn(30,30,230,230);
    SetWindowRgn(handle, region, true);

    timer1.Enabled:=false;
    i:=0;
    a:=0;
    b:=0;
    c:=0;
    end;

    procedure TForm1.Button4Click(Sender: TObject);
    begin
    button1.Enabled:=true;
    button2.Enabled:=false;
    button3.Enabled:=false;
    button4.Enabled:=false;
    timer1.Enabled:=false;
    edit1.Text:='00';
    edit2.Text:='00';
    edit3.Text:='00';
    timer1.Enabled:=false;
    i:=0;
    a:=0;
    b:=0;
    c:=0;
    end;



    procedure TForm1.Button3Click(Sender: TObject);
    begin
    timer1.Enabled:=true;
    button1.Enabled:=false;
    button2.Enabled:=true;
    button3.Enabled:=false;
    button4.Enabled:=false;
    end;

    procedure TForm1.Button5Click(Sender: TObject);
    begin
    close;
    end;


    procedure TForm1.FormShow(Sender: TObject);
    begin
    adim:=0;
    end;


    procedure TForm1.Timer3Timer(Sender: TObject);
    begin
    adim:=adim+1;
    case adim of
    1:label5.Caption:=label5.Caption+'B';
    2:label5.Caption:=label5.Caption+'E';
    3:label5.Caption:=label5.Caption+'K';
    4:label5.Caption:=label5.Caption+'H';
    5:label5.Caption:=label5.Caption+'A';
    6:label5.Caption:=label5.Caption+'C';
    7:label5.Caption:=label5.Caption+'K';


    end;
    end;

    end.
    [LEFT][IMG]http://i38.tinypic.com/k1z2c8.jpg[/IMG] [/LEFT]

  2. #2
    Çok Pis Tartışır
    Üyelik tarihi
    Jan 2006
    Bulunduğu yer
    Eskişehir
    Mesajlar
    14,350
    Forum Katkısı:
    59

    Standart

    Final 3.Sorusu
    [B]Ş'u pleğurem, maşöm wupehaşt[/B]

Konu Bilgisi

Users Browsing this Thread

Şu anda 1 üyemiz bu konuya göz atıyor. (0 kayıtlı üye ve 1 misafir.)

Bu Konuyu Paylaşın !

Bu Konuyu Paylaşın !

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  
Garantili SEO - Moradam