EVT_GRID_SELECT_CELL( GridFrame::OnSelectCell )
EVT_GRID_RANGE_SELECT( GridFrame::OnRangeSelected )
EVT_GRID_CELL_CHANGING( GridFrame::OnCellValueChanging )
- EVT_GRID_CELL_CHANGE( GridFrame::OnCellValueChanged )
+ EVT_GRID_CELL_CHANGED( GridFrame::OnCellValueChanged )
EVT_GRID_CELL_BEGIN_DRAG( GridFrame::OnCellBeginDrag )
EVT_GRID_EDITOR_SHOWN( GridFrame::OnEditorShown )
void GridFrame::OnRowSize( wxGridSizeEvent& ev )
{
- wxLogMessage(_T("Resized row %d"), ev.GetRowOrCol());
+ const int row = ev.GetRowOrCol();
+
+ wxLogMessage("Resized row %d, new height = %d",
+ row, grid->GetRowSize(row));
ev.Skip();
}
void GridFrame::OnColSize( wxGridSizeEvent& ev )
{
- wxLogMessage(_T("Resized col %d"), ev.GetRowOrCol());
+ const int col = ev.GetRowOrCol();
+
+ wxLogMessage("Resized column %d, new width = %d",
+ col, grid->GetColSize(col));
ev.Skip();
}