>Using the VFP Class designer, I have created a container class that contains visual objects based on other classes in the same library. For example, a listbox, command buttons, editbox, etc.
>
>I would like to have another container class that is basically the same as the first container class, but with one of its objects based on a different class.
>
>In a strict class hierarchy, I should be able to create a subclass of the first class and override the class of the object in question and substitute a different class. But, child classes cannot modify the objects of the parent class.
>
>Is there some way to copy the original container class to a new class, and then modify the new class?
>
>I hope I have made myself clear.
>
>Thanks for your help.
>
>Jim
One of the ideas would be to have a subclass of the original with the Return .f. in the Init of the unwanted class and a new object.
It would be a little bit inconvenient to put a new object on top of the unwanted one though...
If it's not broken, fix it until it is.
My Blog