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:
@@ -521,6 +521,10 @@ GridFrame::GridFrame()
|
|||||||
grid->SetCellEditor(3, 0, new wxGridCellBoolEditor);
|
grid->SetCellEditor(3, 0, new wxGridCellBoolEditor);
|
||||||
grid->SetCellBackgroundColour(3, 0, wxColour(255, 127, 127));
|
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;
|
wxGridCellAttr *attr;
|
||||||
attr = new wxGridCellAttr;
|
attr = new wxGridCellAttr;
|
||||||
attr->SetTextColour(*wxBLUE);
|
attr->SetTextColour(*wxBLUE);
|
||||||
|
Reference in New Issue
Block a user