unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm2 = class(TForm)
GroupBox1: TGroupBox;
Bilety1: TCheckBox;
Gadzety1: TCheckBox;
Kokott1: TCheckBox;
Faktura1a: TCheckBox;
faktura1: TEdit;
Faktura2: TCheckBox;
Faktura2a: TEdit;
Faktura3: TCheckBox;
Faktura3a: TEdit;
Faktura4: TCheckBox;
Faktura4a: TEdit;
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
ObrazekLogo: TImage;
Gadzety1a: TEdit;
Kokott1a: TEdit;
Bilety1a: TEdit;
procedure Faktura2Click(Sender: TObject);
procedure Faktura3Click(Sender: TObject);
procedure Faktura4Click(Sender: TObject);
procedure Faktura1aClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Bilety1Click(Sender: TObject);
procedure Gadzety1Click(Sender: TObject);
procedure Kokott1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
uses Unit1 ;
{$R *.dfm}
procedure TForm2.Faktura2Click(Sender: TObject);
begin
if faktura2a.Visible=false then faktura2a.Visible:=true
else faktura2a.Visible:=false;
end;
procedure TForm2.Faktura3Click(Sender: TObject);
begin
if faktura3a.Visible=false then faktura3a.Visible:=true
else faktura3a.Visible:=false;
end;
procedure TForm2.Faktura4Click(Sender: TObject);
begin
if faktura4a.Visible=false then faktura4a.Visible:=true
else faktura4a.Visible:=false;
end;
procedure TForm2.Faktura1aClick(Sender: TObject);
begin
if faktura1.Visible=false then faktura1.Visible:=true
else faktura1.Visible:=false;
end;
procedure TForm2.Button1Click(Sender: TObject);
begin
form1.show(Self,bilety1a.text);
form1.bilety1a.text:=bilety;
end;
procedure TForm2.Bilety1Click(Sender: TObject);
begin
if bilety1a.Visible=false then bilety1a.Visible:=true
else bilety1a.Visible:=false;
end;
procedure TForm2.Gadzety1Click(Sender: TObject);
begin
if gadzety1a.Visible=false then Gadzety1a.Visible:=true
else Gadzety1a.Visible:=false;
end;
procedure TForm2.Kokott1Click(Sender: TObject);
begin
if kokott1a.Visible=false then kokott1a.Visible:=true
else kokott1a.Visible:=false;
end;
end.
Nie wiem jak w ogóle ugryźć ten przeskok ;/