Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot add objects to a class based on a control class.
Message
From
28/03/2005 15:20:47
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00999521
Message ID:
00999524
Views:
25
This is not correct. You can add objects to Control class ONLY if you are working with the first level of subclassing. Any other level does not allow you to add.

Actually, this is what I have asked - why this class behaves so differently than the others? Is this by design? if yes, then it's a _bad_ design ;)

>Grigore,
>
>If my memory serves me right, you can not add object to Control class. You should use container or custom class instead.
>
>>Hi, everyone.
>>
>>I have a control base class (that's it: the base class is "control"). I can add objects to it. But if I subclass it, I cannot add objects in design time in the subclass. The error message is shown in the thread title.
>>
>>This means if I need several controls based on Control class, I have to subclass each of them from native base class and copy&paste the common methods/properties? If yes, then where's the OOP here?
Grigore Dolghin
Class Software.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform