On 10/2/05, Marc Weustink <[EMAIL PROTECTED]> wrote:
> Mattias Gaertner wrote:
> > On Sun, 02 Oct 2005 17:59:52 +0200
> > Matthijs Willemstein <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi All,
> >>
> >>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?
>
> Why should an outside piece of code decide that you (the TYourComponent)
> should paint ?
> IMO, this could suduce ppl to bad programming (invalidate is better to use)

The Delphi way works fine for me :) but you may be thinking of making
the task of creating/using a paint method easier, i don't know if this
is required or wise for controls painted by the OS.

Razvan.

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

Reply via email to