Can't find this.
Looked for a RGBA to hex converter (in code) but couldn't fine one.
RBS
Looked for a RGBA to hex converter (in code) but couldn't fine one.
RBS
Can't find this.
Looked for a RGBA to hex converter (in code) but couldn't fine one.
RBS
Function RGBA2Hex(R As Byte, G As Byte, B As Byte, A As Byte) As String
Dim lRGB As Long
Dim lColor As Long
lRGB = RGB(R, G, B)
lColor = (lRGB And &HFF00&) Or (lRGB And &HFF0000) \ &H10000 Or (lRGB And &HFF) * &H10000
If A < 128 Then
If A < 0& Then A = 0&
lColor = lColor Or A * &H1000000
Else
If A > 255& Then A = 255&
lColor = lColor Or (A - 128&) * &H1000000 Or &H80000000
End If
RGBA2Hex = Hex(lColor)
End Function
[CODE]
RBS
Yes, you can set the button colors with the designer. Change the Drawable to StatelistDrawable.
If you have any other question then please start a new thread.
But, in B4A, TextColor doesn't have the Alpha level like in B4J or B4i and for the background color.
View attachment 84859
Will be fixed.But, in B4A, TextColor doesn't have the Alpha level like in B4J or B4i and for the background color.