Autor Beitrag
recall
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: So 07.09.03 17:51 
Hallo,

kann mir mal jemand sagen, wie ich einem Formular ein OnPaint-Ereigniss während der Laufzeit zuweise ?
Das Ereigniss existiert schon, nur möchte ich einem Formular, dass ich bei LZ erstellt habe dieses Event zuweisen :)

Nur kriege ichs nicht hin :(
NewForm.OnPaint := FormPaint(F);funzt net, da sagt er: "Inkompatible Typen: TNotifyEvent und procedure".

Kann mir einer helfen :?: Das habe ich schonmal hingekriegt, nur ist es ~2 Jahre her *vergess*

Viele Grüsse.


Zuletzt bearbeitet von recall am So 07.09.03 17:57, insgesamt 1-mal bearbeitet
recall Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: So 07.09.03 17:56 
Peinlich: geht natürlich nur so:
ausblenden Delphi-Quelltext
1:
F.OnPaint := Form1.OnPaint;					
:oops: naja, ist ja auch logisch, wenn ich einem Event eine proc zuweisen will, dass er dann meckert (*ähem*)

Danke an alle Leser.

Viele Grüsse.