Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create read-only Drop-down list combo box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00773225
Message ID:
00773955
Vues:
15
>How to prevent entering new values ?
>Which is the best way to mark list box read only from VFP code ?

If my combo is read-only, then I don't want the user to be able to show the list of values, either. Therefore, something like this in the ReadOnly_ASSIGN method works for me:
LPARAMETERS lReadOnly

THIS.Enabled = !lReadOnly
IF lReadOnly
   THIS.DisabledForeColor = THIS.ForeColor
ELSE
   THIS.ResetToDefault("DisabledForeColor")
ENDIF

THIS.ReadOnly = m.lReadOnly
Ryan Katri
COB System Designs, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform