Autor Beitrag
Timelesk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 82


Delphi 2006 Prof
BeitragVerfasst: Sa 26.11.05 16:52 
Hi,

ich bin gerade am rummtüfteln und dabei auf folgendes Problem gestoßen.

Wenn eine Procedure existiert, kann ich diese ja, sofern sie auf eine Komponente passt, dieser Komponente zuweisen:

ausblenden Delphi-Quelltext
1:
button1.OnClick := Button1Click;					


Das funktioniert einwandfrei und wunderschön, nur wie bekomme ich es hin, dass Button1.OnClick wieder unbelegt ist?
Muss halt während der Laufzeit sein ;)

Sowohl auf Delphi-Praxis, als auch hier, konnte ich nichts zu dem Thema finden :(

vielen Dank für eure Hilfe


gruß
Timelesk

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 26.11.05 16:54 
Hallo!

Einfach anstatt einer Methode nil zuweisen.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Timelesk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 82


Delphi 2006 Prof
BeitragVerfasst: Sa 26.11.05 17:09 
So einfach!

Vielen herzlichen Dank!
Es funktioniert einwandfrei.