int row = ev.GetRow(),
col = ev.GetCol();
- wxString value = grid->GetCellValue(row, col);
-
wxLogMessage(_T("Value changed for cell at row %d, col %d: now \"%s\""),
- row, col, (const wxChar*) value);
+ row, col, grid->GetCellValue(row, col).c_str());
ev.Skip();
}
// ----------------------------------------------------------------------------
BugsGridFrame::BugsGridFrame()
- : wxFrame(NULL, wxID_ANY, _T("Bugs table"),
- wxDefaultPosition, wxSize(500, 300))
+ : wxFrame(NULL, wxID_ANY, _T("Bugs table"))
{
wxGrid *grid = new wxGrid(this, wxID_ANY, wxDefaultPosition);
wxGridTableBase *table = new BugsGridTable();
grid->SetColAttr(Col_Priority, attrRangeEditor);
grid->SetColAttr(Col_Severity, attrCombo);
- grid->SetMargins(0, 0);
-
grid->Fit();
SetClientSize(grid->GetSize());
}