B4J Question I am baffled

MrKim

Well-Known Member
Licensed User
Longtime User
B4X:
    Private WCList As CustomListView
.
.
.
'loading multiple lines with this:
WCList.AddTextItem (Crsr.GetString("SchM_WCCode"), Crsr.GetString("SchM_WCCode"))
WCList.ResizeItem(WCList.Size - 1, 40)
.
.
.
'later trying to set the background color of the selected item. 
PP = WCList.GetPanel(Index)
followed by one of the next two lines.

This line works, sets the color for the item:
B4X:
PP.Color = xui.Color_Gray
B4X:

This line does not:
B4X:
PP.Color = xui.Color_ARGB(255, 186, 204, 210)

I have tried different values for all arguments on the ARGB but it doesn't set the background color.
 

Brian Dean

Well-Known Member
Licensed User
Longtime User
The first value in ARGB sets the transparency. You are making the colour fully transparent! Just use color_RGB.
 
Upvote 0
Top