B4J Question ComboBox increase dropdown count

blueworld

New Member
Licensed User
Probably a really silly question but how can I increase the dropdown list count of a ComboBox the default is ten before the scrollbar appears I would like to increase this if possible. I've looked for a good while for a combobox.dropdowncount type property but can't see it.

Thanks in Advance
 

EnriqueGonzalez

Well-Known Member
Licensed User
That would be:

B4X:
Combobox.as(javaobject).runmethod("setVisibleRowCount",array(3))

Where 3 is the max number of rows to be shown.

This example requires latest beta version of b4j, if you only have the production version then dim javaobject and assign the combobox
 
Last edited:
Upvote 0
Top