On Mon, 05 Feb 2007 14:54:55 +0330
"roozbeh gholizadeh" <[EMAIL PROTECTED]> wrote:

> I have a problem with ttimer.So i came to this question.
> As far as i know all values in components are stored in file,and read
> in runtime to create components.
> But forexample ttimer.ontimer value is a pointer to a procedure,which
> its address is created in runtime,how these values are mapped,and
> what procedures,functions do this job.

See TReader.ReadPropValue (type this and do find declaration).

fpc/rtl/objpas/classes/reader.inc:533
  Result := ARoot.MethodAddress(AMethodName);
ARoot is the form (e.g. Form1).

called by
fpc/rtl/objpas/classes/reader.inc:1139
          Method.Code := FindMethod(Root, Ident);

 
> As in wince the ttimer.setontimer -with design time value-is called
> with wrong value,but setting ontimer in runtime works.

Do other events work?

Mattias

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

Reply via email to