Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a container
Message
De
31/01/2002 19:35:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00613278
Message ID:
00613773
Vues:
14
>Hilmar,
>
>If you use the baseclass of Control then the controls inside the container cannot be addressed, they are hidden from all code except the code in the control class. In this case you can ONLY access the container's Enalbed property because MyControl.Textbox results in an unknown object.
>
>It is surprising how few people know about or use the Control baseclass. It is ideal for your exact situation. Of cource you have to raise all value properties to the control's level if you need to read them in code, that is easily done by making their controlsource be properties of the control class.

I had quite forgotten about the base classes. I learned about them once upon a time...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform