Other fx.colors in b4j and b4a

netsistemas

Active Member
Licensed User
Longtime User
Its basic but:
how set color a label:

B4X:
'is this line correcT:    
Dim fx As JFX


    If Seleccionada Then
        lblReferencia.color =  fx.Colors.From32Bit(0xFFA32222)
    End If

fx not declared? what is this. i use right button for get code from assistant color
 

Attachments

  • errror.jpg
    42.2 KB · Views: 122

Erel

B4X founder
Staff member
Licensed User
Longtime User
Never use fx.
Only use XUI.

lbl should be B4XView.
B4X:
lbl.Color = 0xFFA32222
lbl.Color = XUI.Colors_Red
 
Upvote 0

netsistemas

Active Member
Licensed User
Longtime User
ok. for future. right button -> select color -> copy to clipboard, only copy hex value.
Best regard, Erel..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…