/////////////////////////////////////////////////////////////////////////////
// Name: griddemo.h
-// Purpose: Grid control wxWindows sample
+// Purpose: Grid control wxWidgets sample
// Author: Michael Bedward
// Modified by:
// RCS-ID: $Id$
#ifndef griddemo_h
#define griddemo_h
-#if !defined(wxUSE_NEW_GRID) || !(wxUSE_NEW_GRID)
- #error "This sample requires the new wxGrid class."
-#endif
-
class wxGrid;
class GridApp : public wxApp
class GridFrame : public wxFrame
{
wxGrid *grid;
+#if wxUSE_LOG
wxTextCtrl *logWin;
wxLogTextCtrl *logger;
+#endif // wxUSE_LOG
wxString logBuf;
void SetDefaults();
ID_TESTFUNC
};
+#if wxUSE_LOG
wxLog *m_logOld;
+#endif // wxUSE_LOG
// add the cells to selection when using commands from select menu?
bool m_addToSel;
}
void SetValue( int , int , const wxString& ) { /* ignore */ }
- bool IsEmptyCell( int , int ) { return FALSE; }
+ bool IsEmptyCell( int , int ) { return false; }
private:
long m_sizeGrid;