On 8/31/06, Micha Nelissen <[EMAIL PROTECTED]> wrote:
Flávio Etrusco wrote:
>> 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 ;-)

So ... will you base TCustomControl on TScrollingWinControl and
eliminate duplicate code that way, and submit a new patch ?

I'm at work yet (those modifications are at home), so let me try a
last argument. If you don't buy it I'll make the new patch ;-)

My main point is TWinControls (wrappers around external controls)
shouldn't have to manipulate the control scrollbars in the LCL so
having a TScrollingWinControl which inherits from TWinControl seems
basically useless to me.

Most controls don't have scrollbars, so we'll add bloat and namespace
pollution to these controls.
TForm already has almost the same behaviour as if it inherited from
TCustomControl, so we're losing nothing from it.

I agree entirely with the rest of your post, BTW.

Micha

Nice :-)
And I forgot to mention reducing a bit of redundant code; of course
good for program size and maintenance ;-)

Cheers,
Flávio

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

Reply via email to