Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Database:
Jet/Access Engine
>>But for me this does not seem to work, as I put my "maskit" controls in panels and pageframes and other containers. Yes, I have to write a Maskit routine (for each of those containers) that contains a "for each ctrl in me.controls". There's probably a way to handle this a the form level too of course.
>
>Your control should really be self-contained Marc. Once it's databound and the mask property set, it should know how to do everything it needs to do. It shouldn't have to ask up to the parent control for much of anything (I make an exception to that for rule-checking, since typically it's the Form that contains the Rules ... but again, that all depends on how you've designed your architecture. Still, rule-checking would have nothing to do with validating a mask).
Hi,
I don't think there was anything in Marc's code that required the 'mask' controls to be aware of their container? It was really working the other way round - code to drill down from form level and set the initial property on any nested 'mask' controls.
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