Hello,
i'm working on a great new custom view and i'm using the B4XComboBox, wich is based on the ComboBox in B4J. I need to customize the style of it, to match it with the other views style.
I need to set the following properties:
The only setting that works is the Fonz size:
I found the following thread where some properties are already in there, but I don't know how to change or control that at runtime.
Thanks
i'm working on a great new custom view and i'm using the B4XComboBox, wich is based on the ComboBox in B4J. I need to customize the style of it, to match it with the other views style.
I need to set the following properties:
- TextAlignment
- Right
- BackgroundColor
- Transparent
- The arrow on the right
- Transparent or hide
B4X:
CSSUtils.SetStyleProperty(ComboBox.cmbBox,"-fx-control-inner-background","transparent")
CSSUtils.SetStyleProperty(ComboBox.cmbBox,"-fx-background","transparent")
CSSUtils.SetStyleProperty(ComboBox.cmbBox,"-fx-faint-focus-color","transparent")
CSSUtils.SetStyleProperty(ComboBox.cmbBox, "-fx-text-alignment", "center")
B4X:
CSSUtils.SetStyleProperty(ComboBox.cmbBox, "-fx-font-size", 15)
I found the following thread where some properties are already in there, but I don't know how to change or control that at runtime.
(SOLVED) How can I change the appearance of a ComboBox?
Attachment capture in which at design time the appearance of the buttons and the B4XComboBox are the same. However at run time the appearance of the ComboBox changes. Thanks and best regards
www.b4x.com
Thanks