Cableguy Expert Licensed User Longtime User Jan 21, 2018 #1 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 : 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!
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 : 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 Jan 21, 2018 #2 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
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.
Cableguy Expert Licensed User Longtime User Jan 21, 2018 #3 basically, I need to "create" my own combobox if I want something a bit more complicated... Right? Upvote 0