From 04b6fc2f9079f5376ed8c7f09bf41c72768fcd42 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Nov 2019 01:06:45 +0100 Subject: [PATCH] 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. --- samples/grid/griddemo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index aa6f348e5e..bc68dae5dc 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -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);