Information générale
Catégorie:
Programmation Orientée Object
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.....
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement