Added check for Refresh function.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -699,8 +699,11 @@ void GridFrame::SetCellBgColour( wxCommandEvent& WXUNUSED(ev) )
|
|||||||
wxColour col = wxGetColourFromUser(this);
|
wxColour col = wxGetColourFromUser(this);
|
||||||
if ( col.Ok() )
|
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->SetDefaultCellBackgroundColour(col);
|
||||||
grid->Refresh();
|
grid->Refresh(TRUE, &r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user