Autor Beitrag
rockminstrel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38

Win XP Prof.
Delphi 5 Prof., Delphi 2005 pers., Turbo Delphi 2006 Exp.
BeitragVerfasst: Fr 23.02.07 09:27 
Hallo,

ich möchte einen Array of Tbutton, TPanel etc. erstellen und ein onclick-Ereignis deklarieren. Wie kann ich nun herausfinden welcher Button angeklickt wurde. Wäre toll wenn mir jemand helfen könnte.

Danke im Voraus
Rockminstrel
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 23.02.07 09:42 
ausblenden OnClick
1:
ShowMessage('Es wurde der Button mit dem Namen ' + (Sender as TButton).Name + ' gedrückt');					

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
rockminstrel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38

Win XP Prof.
Delphi 5 Prof., Delphi 2005 pers., Turbo Delphi 2006 Exp.
BeitragVerfasst: Sa 24.02.07 15:48 
Danke. Werd mal schauen wie ich das Einbau. Bei Problemen melde ich mich wieder.