Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropdown Listbox
Message
De
23/07/1997 15:09:12
 
 
À
23/07/1997 14:39:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00041362
Message ID:
00041375
Vues:
31
>>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".

No, I don't really want a combobox, because I don't want the user to be able to type anything in. The problem I have is that setting the listbox's readonly property has no effect, and won't even save in the properties box. I set it to .T., scroll to another property, and it changes itself back to .F.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform