[Lazarus] Is this a Bug in Lazarus/FreePascal
Tommi Prami
groups.tprami at gmail.com
Thu Jan 27 15:06:25 CET 2011
Hello,
(I am using latest Daily Snapshot
I am trying to assignn eventhandler from my own class, for the form, but
compile(r) seems to think that I am trying to make an call to that
method, not assing it into the evenhandler
I have method in class declare as :
procedure OnInternalKeyUpEvent(Sender: TObject; var Key: Word;
Shift: TShiftState);
and I am trying to assign it as KeyUp event handler for the TForm:
if Assigned(FParentForm) then
begin
FParentForm.OnKeyUp := OnInternalKeyUpEvent;
end;
mwWin32WinCEBridge.pas(175,48) Error: Wrong number of parameters
specified for call to "OnInternalKeyUpEvent"
Is this a bug or do I need to do something different.
I think this works in Delphi...
-TP-
More information about the Lazarus
mailing list