[lazarus] Forwarded from private email

Michael A. Hess mhess at miraclec.com
Mon Apr 10 09:40:45 EDT 2000


Hi, all!
Please help me: How I can to add a event ONCHANGE to TEdit?
ppc386 tells me, that: "can't access a protected field of an object
here"
but if I tell him do ONCLICK -- all right.

here a codemodel, which I using:

================================
type
   public
       procedure edt1chg(sender : tobject);
       procedure edt1clk(sender : tobject);

constructor

    edit:=tedit.create(self);
    edit.onchange:=@edt1chg;  // <-= here error
    edit.onclick:=@edt1clk;       // all right

...

=================================

Please help.
-- 
==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com






More information about the Lazarus mailing list