Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interface: Visible vs. Enabled
Message
De
22/08/2001 11:16:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00547292
Message ID:
00547309
Vues:
10
>>When a command button (or other object) doesn't apply in a certain situation, I can either make .Visible = .F., or .Enabled = .F. In general, what would be better UI? Any opinions?
>>
>>Hilmar.
>
>It depends. If under certain curcumstances the button would be enabled on this form, I would play with enabled property (e.g. user would be confused, if button magically disappears). If, however, for this particular user or this particular regime the button never would be accessible, I would make it invisible.
>
>In other words, if in the form's life-time there could be conditions, under which button should be accessible, I would make it disabled. If not, I would make it invisible.

Makes sense; thank you. I'll think about it a little more, though, before making lots of changes to my system.

Hilmar.
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