I would like to use cellbackgroundpaint in a listbox to colour the background based on the rowTag.
Having tried this with little success I decided to look on the xojo docs at ListBox.CellBackgroundPaint.
I created a new project, added listbox, a couple of rows and the code from the example.
If Me.CellTag(row, column ) = "Red" Then
g.ForeColor = RGB(255, 0, 0)
g.FillRect(0, 0, g.Width, g.Height)
End If
The code breaks on the first line with an out of bounds exception error.
I am running Xojo 2016r3 on Windows 7 Pro - although have tested this morning on 2016r2 & 2016r1 with same issue.
Any help would be appreciated.