B4J Question I am baffled

MrKim

Well-Known Member
Licensed User
Longtime User
B4X: Copy
    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: Copy
PP.Color = xui.Color_Gray
B4X: Copy

This line does not:
B4X: Copy
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.
 
The first value in ARGB sets the transparency. You are making the colour fully transparent! Just use color_RGB.
 
Upvote 0
Back
Top