For y = 0 To rows-1
Dim bt As Button
' bt.Initialize("Button",bt.STYLE_SYSTEM)
' bt.InitializeCustom("Button", Colors.RGB(0, 0, 128), Colors.Blue)
bt.InitializeCustom("Button", Colors.White, Colors.Green)
strlines =list1.get(y)
bt.Text = strlines
bt.Tag = y * columns
bt.Color = Colors.Red
bt.SetBorder(2dip, Colors.Blue, 10dip)
bt.CustomLabel.Color = Colors.Blue
bt.CustomLabel.Left = 0
' Log(bt.CustomLabel.Left)
' Log(bt.CustomLabel.Width)
bt.CustomLabel.Width = bwidth
bt.CustomLabel.AdjustFontSizeToFit = False
' bt.CustomLabel.Font = Font.CreateNewBold(20)
If y Mod 2 = 0 Then
bt.CustomLabel.Font = Font.CreateNew(20)
Else
bt.CustomLabel.Font = Font.CreateNew(15)
End If
bt.CustomLabel.SetBorder(2dip, Colors.Yellow, 5dip)
bt.CustomLabel.Multiline = False
bt.CustomLabel.TextColor = Colors.RGB(0, 0, 128)
bt.CustomLabel.TextAlignment = bt.CustomLabel.ALIGNMENT_LEFT
screenscrollview.Panel.AddView(bt, 2dip, y * BHeight + 2dip, bwidth, BHeight-4dip) 'Add Button
Next