B4J Question ComboBox - How to set Font Size?

Ulrich

Member
Licensed User
Longtime User
Hello together,
when setting the style of a Combobox in ScenePainter (2.0) via string -fx-font-size: 20; the preview in ScenePainter showes the right results.
When open the same layout in code, without using any style setting for the control of the ComboBox, the code dumps.

How to set font size of Combobox?
Regards Ulrich
 

stevel05

Expert
Licensed User
Longtime User
Have a look here, Scene Builder 2 is not compatible.
 
Upvote 0

Ulrich

Member
Licensed User
Longtime User
Have a look here, Scene Builder 2 is not compatible.
Thanks for the quick reply,
I (temporaryly) switched to ScenePainter 2.0 because I had the same Problems with 1.1.

So I would like to ask the question this way:
How to set the font size of a Combobox under ScenePainter 1.1?
Regards Ulrich
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes, it does the same for me, I suggest you report a bug. It does the same if you try to change it in code:

B4X:
CB1.Style="-fx-font-size: 20;"

It gives a stack overflow error.
 
Upvote 0

Ulrich

Member
Licensed User
Longtime User
Yes, it does the same for me, I suggest you report a bug. It does the same if you try to change it in code:

B4X:
CB1.Style="-fx-font-size: 20;"

It gives a stack overflow error.

Yes, same for me. If I look at the CSS-Analyzer in ScenePainter, I can not find any font-property for the Combobox.
But for a TextField f.i. I can.

May be therefore this works fine in my program:

Dim txtS As TextField
txtS.style = "-fx-font-size: 20;"
CSS-Analyzer shos the corresponding inner property -fx-font for TextField.
 
Upvote 0
Top