B4J Question Changing the color of a CheckComboBox control

GuyBooth

Active Member
Licensed User
Longtime User
I have a simple CheckComboBox control called ccbx, and I want its background to match all the other controls I have on the same pane.
Changing the background color in its properties has no effect.
Setting the background color using the code
B4X:
        CSSUtils.SetStyleProperty (ccbx, "-fx-background-color", "honeydew")
has no effect.
Can anyone tell me how to change it's background color?
 

GuyBooth

Active Member
Licensed User
Longtime User
It doesn't look like it is possible to change its colors.
Finally found these. The body color worked for the control when it is "closed".
The other four I have found useful for changing away from the typical blue color for selections and focus borders.
Still have a problem with the background when it has been "opened".
B4X:
-fx-body-color: honeydew;
' As well as these
-fx-selection-bar: #99BC96;
-fx-selection-bar-non-focused: #99BC96;
-fx-accent: #99BC96;
-fx-faint-focus-color: #99BC96;
-fx-focus-color: #99BC96;
 
Upvote 0
Top