]> git.saurik.com Git - wxWidgets.git/commitdiff
redraw the grid when it's enabled/disabled
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Feb 2005 22:31:30 +0000 (22:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Feb 2005 22:31:30 +0000 (22:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/grid.h
src/generic/grid.cpp

index c826e2b499ce26af0291a674da367cbb98833161..22096fc6e1c9aab8948837c25868336de2ca3903 100644 (file)
@@ -1561,6 +1561,10 @@ public:
     }
 
 
+    // override some base class functions
+    virtual bool Enable(bool enable = true);
+
+
     // ------ For compatibility with previous wxGrid only...
     //
     //  ************************************************
index dad21398221503e1a43ab6a480c74c216de3b4d1..712326e6117a69a89a17e30c1d71932489d9b56a 100644 (file)
@@ -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