On Sun, 2005-10-02 at 19:47 +0200, Mattias Gaertner wrote:
> > In Delphi the Paint method is declared protected in TCustomControl. In
> > Lazarus however this method is declared public.
> > Is this a remainder of the past or is it done intentionally?
> Why should it not be public?
Because Laz is intended to be as much Delphi compatible as possible?
And as TCustomXXXXXX is usually used to derive new components from. I
think it is good custom to keep the visibility of methods and properties
as low as possible, because hiding them in derived components is
impossible.
Matthijs
--
Matthijs Willemstein <[EMAIL PROTECTED]>
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives