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:
parent
851d11ba2c
commit
04b6fc2f90
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user