Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why don't ...
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00212631
Message ID:
00214048
Vues:
30
Yeah, I was hoping I could do this in VFP 6, but it did not work. I had already tried this with labels because I remembered it worked awhile back. I had wondered why this no longer worked :(.

I absolutely agree with how this all should work. I fully expect the container to be the observer then fire off the resize of all the controls. But this having to fire it for each individual control is for the birds.

>I think it was VFP 5 that killed this kind of behavior. Remember when we could put a Refresh() in a Label Subclass??? And, have that refresh called when the container's refresh was called. In this scenario, you need to have something that is both an observer and delegator. An observer, to the extent that it is watching what is going on. A delegator to the extent that it can broadcast the Resize message to the appropriate controls. The delegator is aware of the context and should send the proper message to each control. Each object on the other hand, just resizes itself, based on what it is told to do.....
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform