More compilation fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2000-03-13 12:04:25 +00:00
parent 12646a5ae2
commit 6fc0f38fe0
2 changed files with 8 additions and 2 deletions

View File

@@ -1478,7 +1478,7 @@ public:
void SetCellBitmap(wxBitmap *WXUNUSED(bitmap), int WXUNUSED(row), int WXUNUSED(col)) void SetCellBitmap(wxBitmap *WXUNUSED(bitmap), int WXUNUSED(row), int WXUNUSED(col))
{ } { }
void SetDividerPen(const wxPen& WXUNUSED(pen)) { } void SetDividerPen(const wxPen& WXUNUSED(pen)) { }
wxPen& GetDividerPen() const { return wxNullPen; } wxPen& GetDividerPen() const;
void OnActivate(bool WXUNUSED(active)) {} void OnActivate(bool WXUNUSED(active)) {}
// ******** End of compatibility functions ********** // ******** End of compatibility functions **********

View File

@@ -624,7 +624,7 @@ void wxGridCellTextEditor::HandleReturn( wxKeyEvent&
{ {
#if defined(__WXMOTIF__) || defined(__WXGTK__) #if defined(__WXMOTIF__) || defined(__WXGTK__)
// wxMotif needs a little extra help... // wxMotif needs a little extra help...
long pos = Text()->GetInsertionPoint(); size_t pos = (size_t)( Text()->GetInsertionPoint() );
wxString s( Text()->GetValue() ); wxString s( Text()->GetValue() );
s = s.Left(pos) + "\n" + s.Mid(pos); s = s.Left(pos) + "\n" + s.Mid(pos);
Text()->SetValue(s); Text()->SetValue(s);
@@ -7606,6 +7606,12 @@ void wxGrid::Fit()
AutoSize(); AutoSize();
} }
wxPen& wxGrid::GetDividerPen() const
{
return wxNullPen;
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// cell value accessor functions // cell value accessor functions
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------