Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-04

Forwarded from private email

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael A. Hess

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);
    ;  // <-= here error
    ;       // all right

...

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

Please help.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Shane Miller

Pull from CVS again and try it.
TEdit didn't have OnChange as a property that was published so you were inheriting it from TCustomEdit which had it as protected.

Shane

>> 04/10/00 08:40AM >>>

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);
    ;  // <-= here error
    ;       // all right

...

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

Please help.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email