Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Readonly vs. enabled
Message
De
11/04/2004 20:12:40
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Readonly vs. enabled
Divers
Thread ID:
00893936
Message ID:
00893936
Vues:
53
In my VFP application framework I currently use this.readonly=.T. for textboxes, editboxes and grids that I don't want edited. I have favored this over this.enabled=.F. because I still want the users to enter the control and scroll to see data that may not be in the visible area of the control. However, this means additional code must be added to ensure Valid() and LostFocus() code does not run. On the other hand, setting the enabled property is consistent with all those other controls that do not have a readonly property.

What do other users use to disable their foundation classes? Apart from what I have mentioned above, are there any other pros and cons of each approach?

Many thanks,
Alan Harris-Reid
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform