Combo Box list height

You have questions about Ubercode? Look here for your answers. You didnt find what you where looking for? Be the first to ask the question!

Combo Box list height

Postby onykage on Sat Oct 09, 2010 6:03 pm

ive run into this issue before and i had trouble trying to explain what the problem was and ended up moving on. Now im at the point where I HAVE to fix this, there is no other way to achieve what I need to do.

Ok,

When you populate a combobox with a list count, it will display at maximum 30 list items. I have tried repeatedly with no avail so far to make the combobox list scroll if the list count is greater then 30 items. So far, no luck. Is this even possible with UC or am I missing something in the design time?
onykage
Admin
 
Posts: 221
Joined: Sat Jan 03, 2009 8:28 pm
Location: Armpit USA
Programming languages: php, java, python, ubercode, easyuo, peril, cobal, pascal, ruby

Re: Combo Box list height

Postby ubercode on Tue Oct 12, 2010 5:57 pm

You can't add a scrollbar to the list of combo items - the list of items is shown / hidden by Windows and it doesn't have an option for this. You can still scroll through the items with the up arrow and down arrow.

You can easily show more than 30 items though - just make the height of the combo box very tall (eg 500 dialog units). I just did a test with 50 items and it shows them all.

Tip - if you have lots of items, instead of calling AddItem lots of times, put the items into a multi line string and call SetListtext(me.Combo1, MyItems)
ubercode
Site Owner
 
Posts: 274
Joined: Sun Jan 04, 2009 3:46 pm
Location: UK Channel Islands


Return to Ubercode Questions

Who is online

Users browsing this forum: No registered users and 0 guests

cron