]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/gridctrl.cpp
changed Refresh to take Rect as client coordinates not window coordinates
[wxWidgets.git] / src / generic / gridctrl.cpp
index a6f8f58b808e85e953015249cec8bc453a49bb0e..12f1c6c6554e3b258d045e695cad362651c05ba6 100644 (file)
@@ -19,6 +19,9 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+
+#if wxUSE_GRID || wxUSE_NEW_GRID 
+
 #ifndef WX_PRECOMP
     #include "wx/textctrl.h"
     #include "wx/dc.h"
 #ifndef WX_PRECOMP
     #include "wx/textctrl.h"
     #include "wx/dc.h"
@@ -215,6 +218,8 @@ void wxGridCellEnumRenderer::SetParameters(const wxString& params)
 wxGridCellEnumEditor::wxGridCellEnumEditor(const wxString& choices)
                     : wxGridCellChoiceEditor()
 {
 wxGridCellEnumEditor::wxGridCellEnumEditor(const wxString& choices)
                     : wxGridCellChoiceEditor()
 {
+    m_startint = -1;
+
     if (!choices.IsEmpty())
         SetParameters(choices);
 }
     if (!choices.IsEmpty())
         SetParameters(choices);
 }
@@ -384,3 +389,4 @@ wxGridCellAutoWrapStringRenderer::GetBestSize(wxGrid& grid,
     return wxSize(width,height);
 }
 
     return wxSize(width,height);
 }
 
+#endif