Momentan erstelle ich sie so:
Delphi-Quellcode:
var Quadrat: Array [1..100,1..100] of TImage;
...
...
for x := 1 to 10 do
for y := 1 to 10 do
begin
Quadrat[x,y] := TImage.Create(form1);
with Quadrat[x,y] do
begin
parent := form1;
height := hw;
width := hw;
left := (x-1)*hw+190;
top := (y-1)*hw+5;
picture.LoadFromFile('Pictures\Blume.ico');
end;
end;
Wo muss ich denn die OnClick procedure genau hinschreiben?