Classes inheritance. How to ?

User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Enrico,

>No, you will only need it if you are going to make a control.

And apparently you need it only sometimes when it is a control. For instance, the DBCombo class inherits from the TCombobox class but doesn't have lRegistered (and it works fine). Perhaps lRegistered should be added, but one wonders why it works without it.

James
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Because you are inheriting from a standard Windows control and not creating a new custom control.

EMG
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Enrico,

>Because you are inheriting from a standard Windows control and not creating a new custom control.

Thanks for clarifying that.

James
Post Reply