Dinamicki napravim komponentu tipa TButton:
Code:
with tbutton.Create(self) do
begin
parent:=panel1;
left:=15;
top:=56;
width:=100;
name:='dugme';
caption:='poruka';
end;
with tbutton.Create(self) do
begin
parent:=panel1;
left:=15;
top:=56;
width:=100;
name:='dugme';
caption:='poruka';
end;
Kako sada da napisem dogadjaj onclick na to dugme koje ce se kreirati tek u programu?