For i = 0 To lstPlayers.Size-1
Dim player As tPlayers = lstPlayers.Get(i)
Dim chk As CheckBox
chk.Initialize("chkPlayers")
lstChecks.Add(chk)
Dim lbl1 As Label
lbl1.Initialize("")
lbl1.Text =player.Name
lbl1.TextSize=20
lbl1.Gravity = Gravity.CENTER_VERTICAL
If player.Sex="M" Then
lbl1.TextColor = Colors.cyan
Else
lbl1.TextColor = Colors.RGB(255,209,220)
End If
svPlayers.Panel.AddView(chk, 0, height * i, 120dip, height)
svPlayers.Panel.AddView(lbl1, 50dip, height * i, 120dip, height)
Next