Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown Listbox
Message
From
23/07/1997 15:15:03
 
 
To
23/07/1997 15:09:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00041362
Message ID:
00041376
Views:
36
>>>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.

I didn't suggest you to use combobox. Actually, I want to get understanding what exact behaviour you expect to get from Listbox. BTW, Listbox doesn't have ReadOnly property in VFP3b (I cannot check 5.0 right now).
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform