Re: [Lazarus] Controls without a TCustomXClassname

2016-04-26 Thread Fabio Luis Girardi
2016-04-26 17:37 GMT-03:00 Bart :

>
> Maybe I'missing the point but:
>
> TDBEdit = class(TCustomMaskEdit)
> TDBText = class(TCustomLabel)
>
>
Yes, this is right, but I think that should be:

TCustomDBEdit = class(TCustomMaskEdit)
TDBEdit = class(TCustomDBEdit)

On this scenario, the entire functionality of TDBEdit shoud be implemented
into TCustomDBEdit and TDBEdit only publishes the wanted features. Or Am I
wrong?

-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Controls without a TCustomXClassname

2016-04-26 Thread Bart
On 4/26/16, Fabio Luis Girardi  wrote:

> But now, extending some controls of LCL (including some kind of security on
> it), and some of then, don't have a TCustom as ancestor. Some
> controls that don't have:
>
> ** TScrollBox
> ** TDBText
> ** TDBEdit
> ** TNotebook (and TPage)

Maybe I'missing the point but:

TDBEdit = class(TCustomMaskEdit)
TDBText = class(TCustomLabel)

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Controls without a TCustomXClassname

2016-04-26 Thread Fabio Luis Girardi
Hi!

Some time ago, I asked if TApplication.UpdateMainForm should accept a
TCustomForm as parameter instead of TForm. The answers on this topic make
me understand this decision.

But now, extending some controls of LCL (including some kind of security on
it), and some of then, don't have a TCustom as ancestor. Some
controls that don't have:

** TScrollBox
** TDBText
** TDBEdit
** TNotebook (and TPage)

Currently I'm extending the controls of DB Controls palette, so  I think
that has more controls without the TCustom ancestor.

So, this is a bug or Is a design decision?



-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus