var
AnaForm: TclForm; //Kod Formu
parcaBtn1: TClProButton; //ORTA SOL
parcaBtn2: TClProButton; //ORTA SAĞ
parcaBtn3: TClProButton; //ÜST SOL
parcaBtn4: TClProButton; //ÜST SAĞ
baslaBtn: TclButton;
Sel: Boolean;
i2,j2: Integer;
Images: Variant;
procedure basBtn
begin
end;
procedure bas
Var
i,j: Integer;
Buf: String;
begin
i:= TclProButton(AnaForm.clSender).clTagInt div 10;
j:= TclProButton(AnaForm.clSender).clTagInt mod 10;
if Sel = False then
Begin
i2:= i;
j2:= j;
Sel:= True;
End else
Begin
Buf:= Images[i,j];
Images[i,j]:= Images[i2,j2];
Images[i2,j2]:= Buf;
AnaForm.SetImage(AnaForm.clFindComponent('parcaBtn'+IntToStr(i)+IntToStr(j)), Images[i,j]);
AnaForm.SetImage(AnaForm.clFindComponent('parcaBtn'+IntToStr(i2)+IntToStr(j2)), Images[i2,j2]);
Sel:= False;
End;
end;
begin
Sel:= False;
i2:= -1;
j2:= -1;
Images:=
[
['https://i.hizliresim.com/25n16f0.png','https://i.hizliresim.com/awuhq8o.png'],
['https://i.hizliresim.com/pefkmcg.png','https://i.hizliresim.com/iimn9zd.png']
];
AnaForm:= TclForm.Create(Self);
AnaForm.SetFormColor('#46DBC2','#F0E278',clGVertical);
parcaBtn1:= AnaForm.AddNewProButton(AnaForm,'parcaBtn11','');
parcaBtn1.Align:= alNone;
parcaBtn1.Height:= 130;
parcaBtn1.Width:= 130;
parcaBtn1.Left:= 200;
parcaBtn1.clTagInt:= 11;
AnaForm.setImage(parcaBtn1, Images[1,1]);
AnaForm.AddNewEvent(parcaBtn1,tbeOnClick,'bas');
parcaBtn2:= AnaForm.AddNewProButton(AnaForm,'parcaBtn10','');
parcaBtn2.Align:= alNone;
parcaBtn2.Height:= 130;
parcaBtn2.Width:= 130;
parcaBtn2.Left:= 60;
parcaBtn2.clTagInt:= 10;
AnaForm.setImage(parcaBtn2, Images[1,0]);
AnaForm.AddNewEvent(parcaBtn2,tbeOnClick,'bas');
parcaBtn3:= AnaForm.AddNewProButton(AnaForm,'parcaBtn00','');
parcaBtn3.Align:= alNone;
parcaBtn3.Height:= 130;
parcaBtn3.Width:= 130;
parcaBtn3.Top:= 250;
parcaBtn3.Left:= 60;
parcaBtn3.clTagInt:= 00;
AnaForm.setImage(parcaBtn3, Images[0,0]);
AnaForm.AddNewEvent(parcaBtn3,tbeOnClick,'bas');
parcaBtn4:= AnaForm.AddNewProButton(AnaForm,'parcaBtn01','');
parcaBtn4.Align:= alNone;
parcaBtn4.Height:= 130;
parcaBtn4.Width:= 130;
parcaBtn4.Top:= 250;
parcaBtn4.Left:= 200;
parcaBtn4.clTagInt:= 01;
AnaForm.setImage(parcaBtn4, Images[0,1]);
AnaForm.AddNewEvent(parcaBtn4,tbeOnClick,'bas');
baslaBtn:= AnaForm.AddNewButton(AnaForm,'baslaBtn','Karıştır');
baslaBtn.Align:= alTop;
baslaBtn.Height:= 50;
baslaBtn.Width:= 130;
AnaForm.AddNewEvent(baslaBtn,tbeOnClick,'karBtn');
AnaForm.Run;
end;