Private i As Int = 0
Private row, col As Int
Private x0 = mBase.Width/30 As Int
Private w = x0 * 2 As Int
Private y0 = mBase.Height / 30 As Int
Private h = y0 * 2 As Int
For row = 0 To 9 'Rows
For col = 0 To 13 'collumns
ColorBox(i).Initialize("ColorSelected")
ColorBox(i).Tag = Palette.get(i)
mBase.AddView(ColorBox(i), x0 + w * col, y0 + h * row, w, h)
ColorBox(i).Color = Colors.Red
i=i+1
Next
Next