Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown Listbox
Message
From
23/07/1997 14:39:49
 
 
To
23/07/1997 14:06:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00041362
Message ID:
00041365
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform