I don't understand your reasoning here. Yes, TWinControls shouldn't need
to control the scrollbars (because that's done by the widgetset), and
that is the reason why TScrollingWinControl descends from TWinControl,
to separate that functionality to another class.
I'm saying that there's no use for having the functionality of
TScrollingXXXControl without TCustomControl.
TTreeView or TListView have scrollbars, but as you said they aren't
wrapped with TScrollingWinControl but with TWinControl, because the
widgetset controls the scrollbars.
> Most controls don't have scrollbars, so we'll add bloat and namespace
> pollution to these controls.
Most TCustomControls you mean ?
Well, yes.
> TForm already has almost the same behaviour as if it inherited from
> TCustomControl, so we're losing nothing from it.
TCustomControl exposes its canvas while TCustomForm doesn't, IIRC ?
It does. Remember, TForm even has OnPaint event ;-)
Cheers,
Flavio
(Oh, my! I'm at home and you didn't buy my arguments 8-)
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives