Add another cell with boolean renderer/editor to the sample

No real changes, just test the boolean cells appearance with the default
white background too.
This commit is contained in:
Vadim Zeitlin 2019-11-22 01:06:45 +01:00
parent 851d11ba2c
commit 04b6fc2f90

View File

@ -521,6 +521,10 @@ GridFrame::GridFrame()
grid->SetCellEditor(3, 0, new wxGridCellBoolEditor);
grid->SetCellBackgroundColour(3, 0, wxColour(255, 127, 127));
grid->SetCellRenderer(3, 1, new wxGridCellBoolRenderer);
grid->SetCellEditor(3, 1, new wxGridCellBoolEditor);
grid->SetCellValue(3, 1, "1");
wxGridCellAttr *attr;
attr = new wxGridCellAttr;
attr->SetTextColour(*wxBLUE);