B4J Question Having issues showing nodes inside a combobox!

Cableguy

Expert
Licensed User
Longtime User
Hi guys,

I'm populating a ComboBox with a not known size list, so far so good, if all I wanted to do was to add string to my combo... but I want to do it hard!
Each Item in the list will be made of a BasePane, into which I load a Layout, that consists of a Pane and a Label.
My code works very well except for the Items placement! It gets Offset to the right and to bottom!
see pic :
upload_2018-1-21_15-45-33.png


I've spent the last 2h searching for a way to solve this issue, but css info is very scarce !
Any help is much appreciated!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It will not work properly. ComboBox can only work with strings. Once an item is selected it is moved to the top field. A node can only have a single parent so it gets removed from the list.

You can create a control based on ListView or xCustomListView and open it when the user clicks on the field.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
basically, I need to "create" my own combobox if I want something a bit more complicated... Right?
 
Upvote 0
Top