Also nochmal:
Ich habs so insgesammt schon Deklariert:
Delphi-Quellcode:
TForm1 = class(TForm)
{...}
private
Buttons:TButtons;
{ private declarations }
procedure Buttons1Click(Sender: TObject);
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
{...}
Buttons.SetClick(3,Buttons1Click);
end;
procedure TForm1.Buttons1Click(Sender: TObject);
begin
Buttons.Name('Bu',3);
end;