B4J Question How do I set a background color for a label?

wdegler

Active Member
Licensed User
Longtime User
I have tried numerous approaches to set the background color of a label in B4J without success. I see this has been much discussed for B4A and has solutions. These solutions do not work for B4J.

Wrong approaches:

Lbl.Style="-fx.background-color: red;"

Lbl.Style = "-fx-font-size: 2.0em; -fx-Font-family: 'Segoe UI Semibold'; -fx-background.color: red; -fx-text-fill: black; -fx-opacity: 1;"

'Lbl.Color=fx.Colors.Transparent
'Lbl.Color=fx.Colors.ARGB(114,0,0,0)

I am out of ideas. Can some help?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Use the designer:

SS-2015-09-15_10.40.46.png
 
Upvote 0

jeronimovilar

Active Member
Licensed User
Longtime User
I know to choice a image from my LABEL1 (in designer), but If i want change the image of my label during working, how can i do?

Label1.????? = "image2.jpg"
 
Upvote 0
Top