On to my next question.
I’ve been trying to get the cell background colour to work for a
Wx::Grid
control. Setting a default background colour works, but using the
set_cell_background_colour method for an individual cell doesn’t.
Following is a short snippet of what I’m trying to do (essentially
highlight cells that don’t match):
columnNames = Array.[](“Col1”, “Col2”, “Col3”)
row1 = Array.[](“A”, “B”, “C”)
row2 = Array.[](“X”, “Y”, “Z”)
resultSet = Array.[](row1, row2)
table = Table.new(columnNames, resultSet)
grid = Wx::Grid.new(panel, -1)
grid.set_table(table)
@grid.set_cell_background_colour(1, 1, Wx::RED)
Any help is greatly appreciated.
Norbert