#include "wx/grid.h"
#include "wx/generic/gridsel.h"
-#if defined(__WXGTK__) || defined(__WXMOTIF__)
- #define WXUNUSED_GTK_AND_MOTIF(identifier) WXUNUSED(identifier)
+#if defined(__WXMOTIF__)
+ #define WXUNUSED_MOTIF(identifier) WXUNUSED(identifier)
#else
- #define WXUNUSED_GTK_AND_MOTIF(identifier) identifier
+ #define WXUNUSED_MOTIF(identifier) identifier
#endif
#if defined(__WXGTK__)
}
void wxGridCellTextEditor::HandleReturn( wxKeyEvent&
- WXUNUSED_GTK_AND_MOTIF(event) )
+ WXUNUSED_GTK(WXUNUSED_MOTIF(event)) )
{
#if defined(__WXMOTIF__) || defined(__WXGTK__)
// wxMotif needs a little extra help...
- long pos = Text()->GetInsertionPoint();
+ size_t pos = (size_t)( Text()->GetInsertionPoint() );
wxString s( Text()->GetValue() );
s = s.Left(pos) + "\n" + s.Mid(pos);
Text()->SetValue(s);
AutoSize();
}
+
+wxPen& wxGrid::GetDividerPen() const
+{
+ return wxNullPen;
+}
+
// ----------------------------------------------------------------------------
// cell value accessor functions
// ----------------------------------------------------------------------------