Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CommandGroup, Container + button NOT greyed out problem
Message
De
24/04/2001 11:00:54
 
 
À
24/04/2001 09:27:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00498664
Message ID:
00499042
Vues:
16
>>Even better... (and more OOPish) than Michael's suggestion create an Assign procedure on the container's Enabled property that does the SetAll. This is better because the Refresh gets call alot and this way the code runs only when you actually change the value.
>
>Hi Craig,
>
>I'm curious, and open to learning new tricks. And since the original poster has not asked, I will. How exactly do you do this? I don't know of a way to add a new method to a control. Or do you mean a form method that gets called when you want? To be honest, I usually let each control take care of them selves. But I thought he didn't want to do that. So, if you have the time, I'm willing to learn this.
>
>TIA
>Mike


You should never use the control "as is", but should subclass it. You can then add whatever methods you want. If you want to add an Assign method, call it Enabled_Assign.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform