Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetAll() except when I don't want want it
Message
De
05/12/2008 08:01:02
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01365578
Message ID:
01365626
Vues:
12
>>We have this code that is used to set the Enabled property of controls on the page. Unfortunately the previous developer didn't account for the fact that we have some controls that are meant to always be disabled. Normally this wouldn't be an issue, but we also have an Enabled_Assign method that does some other stuff. Is there a way to exclude certain controls from being affected by the SetAll()?
>>
>>	WITH .pgfOptions
>>		.SetAll( 'Enabled', m.lbStartEditing )
>>
>
>For the controls in question you may want to use Enabled_Assign method and prevent changing Enabled status there.
>
>I had similar problem before and I solved it using custom lEnabled property of all controls instead of Enabled property directly.

That's a good idea. We have a DisplayOnly property on the controls, so I could use that in the Enabled_Assign. I'll give that a try.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform