Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generically redirect specific properties from parent to
Message
De
18/05/2006 16:07:35
 
 
À
18/05/2006 09:14:59
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:
01123385
Vues:
16
>Hi Herman!
>
>Thank you for our ideas and code. I came up with a similar solution using a function called, amazingingly enough, SetProp! (brilliant minds think alike!).
>
>For those following this thread, I don't use Herman's SETALL() line because I want to redirect specific parent properties to specific child object properties.
>
>The function technique works ok, but I'm still looking for a transparent way to do the same thing via regular assignment statements.
>
>Instead of:
>
>SetProp( This, "fontname", "arial" )
>
>I would like to do:
>
>This.FontName = "Arial"
>
>... and have a This_Assign and/or BindEvent() lookup the property being assigned and determine which (if any) child object property should be updated.
>
>Hope this makes sense to someone besides me :)
>

Malcolm

Need more details, if you have a FontName property in the container and you change its value you want all contained objects that have the same FontName property to update its value too?

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

Carlos

PS: Check your mailbox
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform