Autor Beitrag
J.Borchert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 150

WIN10
XE2 Professional
BeitragVerfasst: Sa 16.12.06 12:21 
Wie muß ich das Event onKeyPress einem neu zur Laufzeit erstelltem Memo zuordnen.
Ich habe Probleme mit den Parametern.

MemoEventKey ist eine public Procedure in Form1 , die dann key auswerten soll.

...
m.OnKeyPress:=MemoEventKey(Sender,key);

funktioniert nicht.

mfG Juergen
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 16.12.06 13:24 
Lass bei der Zuweisung einfach die Parameter weg, also:
ausblenden Delphi-Quelltext
1:
m.OnKeyPress := MemoEventKey;					


Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
J.Borchert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 150

WIN10
XE2 Professional
BeitragVerfasst: Sa 16.12.06 15:42 
Danke, das wars