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:
@@ -1561,6 +1561,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// override some base class functions
|
||||||
|
virtual bool Enable(bool enable = true);
|
||||||
|
|
||||||
|
|
||||||
// ------ For compatibility with previous wxGrid only...
|
// ------ For compatibility with previous wxGrid only...
|
||||||
//
|
//
|
||||||
// ************************************************
|
// ************************************************
|
||||||
|
@@ -7524,6 +7524,16 @@ void wxGrid::ForceRefresh()
|
|||||||
EndBatch();
|
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
|
// ------ Edit control functions
|
||||||
|
Reference in New Issue
Block a user