Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropdown Listbox
Message
De
23/07/1997 14:39:49
 
 
À
23/07/1997 14:06:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00041362
Message ID:
00041365
Vues:
30
>I would like to use a dropdown listbox to give the user a choice of entries for a field. I have done this in many other places in my app, but until now had no reason to make the control read-only. Now I can't get it to behave. Setting the control read-only has no effect on it. There must be something else going on with the box that makes it want to stay editable. I have another issue that my go hand in hand with this one. The field that I am using this control to fill in currently has some values in it that I would like for the Listbox to be able to display, but not let the user choose from in the future... they are obsolete values. Is there a way to allow the box to display them withouth having them as choices?
>
>Erik

You can disable listbox items for case of RowSourceType=0 (None). Here This.AddItem("\disabled1") adds disabled item. In regard to the first part of your question: could you be more specific to explain what listbox behaviour you are looking for. Also the term "dropdown listbox' is confusing a little bit, in reality we have "drop-down combobox".
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform