In the next sample code,
Why the listview text not change the color?
Allways the TextColor is white.
Code:
Dim listac As ListView
Dim lbl As Label
Dim txt As String
lbl = listac.SingleLineLayout.Label
For f = 0 To 9
If f=5 or f=8 Then
txt = "this is red"
lbl.TextColor = Colors.Red
Else
txt = "this is white"
lbl.TextColor = Colors.White
End If
listac.AddSingleLine2(txt, f)
Next
Why the listview text not change the color?
Allways the TextColor is white.
Code:
Dim listac As ListView
Dim lbl As Label
Dim txt As String
lbl = listac.SingleLineLayout.Label
For f = 0 To 9
If f=5 or f=8 Then
txt = "this is red"
lbl.TextColor = Colors.Red
Else
txt = "this is white"
lbl.TextColor = Colors.White
End If
listac.AddSingleLine2(txt, f)
Next