// this will create a grid and, by default, an associated grid
// table for strings
- grid->CreateGrid( 100, 100 );
+ grid->CreateGrid( 0, 0 );
+ grid->AppendRows(100);
+ grid->AppendCols(100);
+
+ int ir = grid->GetNumberRows();
+ grid->DeleteRows(0, ir);
+ grid->AppendRows(ir);
grid->SetRowSize( 0, 60 );
grid->SetCellValue( 0, 0, "Ctrl+Home\nwill go to\nthis cell" );
wxColour col = wxGetColourFromUser(this);
if ( col.Ok() )
{
+ // Check the new Refresh function by passing it a rectangle
+ // which exactly fits the grid.
+ wxRect r(wxPoint(0, 0), grid->GetSize());
grid->SetDefaultCellBackgroundColour(col);
- grid->Refresh();
+ grid->Refresh(TRUE, &r);
}
}