Hi all,

I have several TUpDown buttons created at runtime.

I have a general event for the onclick:

procedure UpDownClick(Sender:TObject; Button:TUDBtnType)
begin
 ...
 DoMyStuff;
 ...
end;

Now at runtime I like to connect the updown.Onclick to this procedure:

With MyUpdown do
 begin
  Parent:= ...
  Top   := ...
  Left  := ...
  OnClick := UpDownClick;
 end;

But the last assignment gives me an error: Wrong number of parameters specified

This works ok in Delphi.

How to connect at runtime? I don't know parameters at designtime...

I am using 0.9.24 and target is WinCE

tia!
John


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to