Hi,
with new internal design I make a simple form and put inside a ComboBox.
If i load this form there is an error like
B4X:
Program started.
java.lang.RuntimeException: java.lang.StackOverflowError
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:82)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.start(main.java:36)
...
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("UNIFIED")
MainForm.Show
Dim cb As ComboBox
cb.Initialize("")
MainForm.RootPane.AddNode(cb, 10, 10, 200, 100)
cb.Style = $"-fx-font-size:17.00;-fx-border-color:#000000;
-fx-border-radius:0.00;-fx-border-width:0.00;-fx-background-radius:0.00;
"$
End Sub
Do you see the same error?
If yes then try to remove parts of the CSS string until the error disappears.
That's useful. Another thing that I would like you to try:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("UNIFIED")
MainForm.Show
Dim cb As ComboBox
cb.Initialize("")
MainForm.RootPane.AddNode(cb, 10, 10, 200, 100)
cb.Style = $"-fx-font-size:17.00;-fx-border-color:#000000;
-fx-border-radius:0.00;-fx-border-width:0.00;-fx-background-radius:20.00;
"$
cb.Items.AddAll(Array ("Item 1", "Item 2"))
End Sub
If it works then try to comment the last line and test again.