Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LISTBOX shows only one line. How to fix it?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00059004
Message ID:
00059454
Views:
32
>>>The Title asks it all!
>>Jerry,
>>
>>As other have said, the title may say what you need to know but it gives us nothing to go on in answering you. What kind of listbox, what is the rowsourcetype setting, what is the rowsource, what is the columnwidth setting, in other words tell us about your listbox.
>
>mmm... I was brief because i assumed (applies to me, not you :-) ) that I had encountered a known misbehavior in the list box.
>There are five values entered in the rowsource and the rowsourcetype is set to 1 - value. The listbox will not show all five values, but behaves more like a spinner box. I replaced the listbox with a dropdown combo and got the effect I was wanting, but I asked about the listbox to see if I misuderstood how to use it or if this behavior was a 'feature'.
>
>Thanks for your reply,
>Jerry

Jerry, there is a fundamental difference between the 'Listbox' control and the 'ComboBox' control. The ListBox MUST be sized to show all the items you wish to see at one time (as many lines as you wish). THe ComboBox control shows only one line until you click on it, and then drops down to display more lines. ComboBox can have its STYLE property set to either DropDown LIST where users are required to accept an entry from the list, or to DropDown COMBO which allows users to enter their own data (subject to certain rules).

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform