Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-04

Controls without a TCustomXClassname

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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<ClassName> 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<ClassName> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160426/32d9710b/attachment.html>

Reply by email

Bart
to Fabio Luis Girardi
Fabio Luis Girardi wrote 8 lines
But now, extending some controls of LCL (including some kind of security on it), and some of then, don't have a TCustom<ClassName> 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

Reply by email

Fabio Luis Girardi
to Bart

2016-04-26 17:37 GMT-03:00 Bart :

Show quoted text 7 lines
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160426/abd2df22/attachment.html>

Reply by email