redraw the grid when it's enabled/disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
241421a60d
commit
bf6461219d
@ -1561,6 +1561,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// override some base class functions
|
||||
virtual bool Enable(bool enable = true);
|
||||
|
||||
|
||||
// ------ For compatibility with previous wxGrid only...
|
||||
//
|
||||
// ************************************************
|
||||
|
@ -7524,6 +7524,16 @@ void wxGrid::ForceRefresh()
|
||||
EndBatch();
|
||||
}
|
||||
|
||||
bool wxGrid::Enable(bool enable)
|
||||
{
|
||||
if ( !wxScrolledWindow::Enable(enable) )
|
||||
return false;
|
||||
|
||||
// redraw in the new state
|
||||
m_gridWin->Refresh();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// ------ Edit control functions
|
||||
|
Loading…
Reference in New Issue
Block a user