Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Combo can not be set to ReadOnly
Message
De
06/06/2003 18:17:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00796794
Message ID:
00797514
Vues:
29
Hi Mark.

My point is what if I have values that users can select from a list but they are not allowed to add new values, but not all users have editing privileges? I have a need to set a dropdown list to ReadOnly for those who do not have editing privs. My only choice now is to disable this control for those users, while other data entry controls like text boxes, spinners and edit boxes, I can set the ReadOnly property to my goApp.lEditPriv property.

Even so, it is really NBD. I assume that all you did was to add an assign method on ReadOnly in your base combo class and put this code in it:
IF This.Style = 2
  This.Enabled = m.vNewVal
ENDIF
THIS.ReadOnly = m.vNewVal
And none of your code had to change at all.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform