Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generically redirect specific properties from parent to
Message
De
18/05/2006 21:47:47
 
 
À
18/05/2006 16:07:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01122795
Message ID:
01123467
Vues:
15
Hi Carlos,

> Or you want to be able to choose which contained objects should "bind" to the container property with the same name?

That's it exactly! I'm looking for a technique that will allow me to data drive these type of parent.property to this.child.property mappings that are so common when one builds composite controls.

For example: Imagine a "caption control" implemented as a container with an icon/image, a label, and a transparent shape to capture all the mouse events as well as provide additional border options.

Font*, Caption properties redirect to identically named label properties
Picture related properties redirect to identically named image properties
Mouse related properties redirect to identically named shape properties

One could write a lot of get/set type _ASSIGN properties in the container class, but that's labor intensive, a pain to maintain, and IMO unnecessarily bulks up the class code which is a pain when you're reviewing your code.

I think Bo Durban's post about This_Acesss may be just the trick I'm looking for.

Thanks!
Malcolm

PS: Got your email!
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform