L le_toubib Active Member Licensed User Longtime User Apr 4, 2015 #1 Hi falks How to show more Raws in a combobox dynamically? thx
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2015 #2 You can add items to the Items property: Code: Copy cmb.Items.Add("New Item") Upvote 0
L le_toubib Active Member Licensed User Longtime User Apr 6, 2015 #3 I was asking about how to "Show" more from the already added raws I.e : setmaxvisibleraw Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 6, 2015 #4 Code: Copy Dim jo As JavaObject = ComboBox1 jo.RunMethod("setVisibleRowCount", Array(20)) Upvote 0
Daestrum Expert Licensed User Longtime User Apr 6, 2015 #5 You can get strange results from this as it seems to depend on the order you do things. combo created in designer in both cases 1, load layout show form add items try to resize - size is wrong (seems to be just over 1 line high) no resize - combo shows correct number of rows from designer. 2, load layout add items show form resize works as expected. Maybe someone could confirm this Upvote 0
You can get strange results from this as it seems to depend on the order you do things. combo created in designer in both cases 1, load layout show form add items try to resize - size is wrong (seems to be just over 1 line high) no resize - combo shows correct number of rows from designer. 2, load layout add items show form resize works as expected. Maybe someone could confirm this
Erel B4X founder Staff member Licensed User Longtime User Apr 6, 2015 #6 Maybe you should remove and add the items after you change this property. Upvote 0
rwblinn Well-Known Member Licensed User Longtime User Apr 6, 2015 #7 Hi, have tested (using latest version = JavaFX 8u40) "load layout, show form, add items, change visible rowcount" without issues. See attached example. Attachments Ex4SetVisibleRowCount.zip Ex4SetVisibleRowCount.zip 2 KB · Views: 425 Upvote 0
Hi, have tested (using latest version = JavaFX 8u40) "load layout, show form, add items, change visible rowcount" without issues. See attached example.