Hi GURUS!
I'm adding 140 square labels to a panel using this
the labels are correctly placed BUT I get a few horizontal lines with the background color, meaning that the bottom on the row does not coincide with the top of the next row, so instead of a "solid" red 14x10 square, I'm getting 4 or 5 odd rectangles. Vertical spacing seems to be right thou.
I need help with my placing formula
I'm adding 140 square labels to a panel using this
B4X:
Private i As Int = 0
For x = 0 To 9 'Rows
For y = 0 To 13 'collumns
ColorBox(i).Initialize("ColorSelected")
ColorBox(i).Tag = Palette.get(i)
mBase.AddView(ColorBox(i), Floor(mBase.Width/30 + ((mBase.Width/15)*y)),Floor(mBase.Height/15 + ((mBase.Height/15)*x)), Floor(mBase.Width/14),Floor(mBase.Height/15))
ColorBox(i).Color = Colors.Red
i=i+1
Next
Next
I need help with my placing formula