Hi,
i have
var myP: array[0..kMaxPanels-1] of TPanel;
then
procedure DrawPanelsFromTracks_Click(Sender : TObject);
var i : integer;
begin
for i:=0 to kMaxPanels-1 do
begin
myP:=TPanel.Create(self); {works just fine}
myP.Tag:=i; {crashes or other thing}
end;
end;
what i'm doing wrong here??
how can i create objects dinamically and show then on form!
thanks in advance
i have
var myP: array[0..kMaxPanels-1] of TPanel;
then
procedure DrawPanelsFromTracks_Click(Sender : TObject);
var i : integer;
begin
for i:=0 to kMaxPanels-1 do
begin
myP:=TPanel.Create(self); {works just fine}
myP.Tag:=i; {crashes or other thing}
end;
end;
what i'm doing wrong here??
how can i create objects dinamically and show then on form!
thanks in advance