Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generically redirect specific properties from parent to
Message
From
18/05/2006 21:47:47
 
 
To
18/05/2006 16:07:35
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01122795
Message ID:
01123467
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform