Android Question B4XComboBox

Guenter Becker

Active Member
Licensed User
Hello,
A) If we populate the combobox with items the first item will be displayed in the textpart. In the situation where an item of the combobox is changed or added I like to force the user to make a new selection in the dropdownlist. To show that nothing is selected I like to "reset" the selecteditem and selected index and to clear the text of the textpart of the combobox. How is that possible?

B) I'm not able to see the divider lines between the dropdownlist items. How to set the color?

C) How is it possible to set the listitem height of the dropdownlist?

B4A Snipped example will be welcome. Thank you.
 

José J. Aguilar

Expert
Licensed User
How is that possible?
You can add always a first item like: "Select an item" and when you change or add new items you can do
B4X:
B4XComboBox1.SelectedIndex = 0
When you want to submit the values, you should check B4XComboBox1.SelectedIndex <> 0, if not, you should show a message: "You need to select an option"

I don't know about B) or C)
 
Upvote 0
Top