unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    btnCLOSE: TBitBtn;
    btnSTART: TBitBtn;
    Label1: TLabel;
    lblLICZNIK: TLabel;
    procedure btnSTARTClick(Sender: TObject);

  private

  public

  end;

var
  Form1: TForm1;

implementation
{$R *.dfm}

procedure TForm1.btnSTARTClick(Sender: TObject);
var
	lp : Integer;

begin
	for lp := 1 to 10000 do
   begin
		lblLICZNIK.Caption := IntToStr(lp);
      Application.ProcessMessages();
   end;
end;

end.
