Isn't it more logical to let TCustomControl descend from
TScrollingWinControl then ? The idea is that none of the 'standard'
widgets in the LCL descend from TCustomControl, because those are
supposed to be user-drawn.


Well, I guess that's an option, too ;-)
But the fact is, most code from TCustomControl for custompainting is
replicated in TScrollingWinControl (or TCustomForm, don't remember for
sure from the top of my head), except for doublebuffering and some
minor details (well, because TForm indeed supports custom paint,
right?).
This is the case for both Delphi5 and (yet more so) LCL, and it always
puzzled me why Borland choose this weird and useless separation (which
was even more useless before Delphi5, as there wasn't TFrame and thus
TCustomForm was the sole descedant for TScrollingWC).

Cheers,
Flavio

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

Reply via email to