Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy & modify a visual class?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01309092
Message ID:
01309096
Vues:
7
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform