Indicated in the source and on initialisation that this is an obsolete sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-01-04 11:04:39 +00:00
parent e9e4acc519
commit 17e7431567

View File

@@ -1,6 +1,10 @@
/* /*
* File: grid.cpp * File: grid.cpp
* Purpose: wxGrid test * Purpose: wxGrid test
PLEASE NOTE: this sample is deprecated. See
newgrid for a sample based on the newer wxGrid API.
* Author: Julian Smart * Author: Julian Smart
* Created: 1995 * Created: 1995
* Updated: * Updated:
@@ -152,6 +156,8 @@ bool MyApp::OnInit(void)
// Show the frame // Show the frame
frame->Show(TRUE); frame->Show(TRUE);
wxMessageBox(wxT("Please note: this is an obsolete sample using the old wxGrid API.\nPlease compile newgrid instead."), wxT("wxGrid"), wxICON_INFORMATION|wxOK, frame);
SetTopWindow(frame); SetTopWindow(frame);
return TRUE; return TRUE;
} }
@@ -240,7 +246,7 @@ void MyFrame::ToggleDividers(wxCommandEvent& WXUNUSED(event))
else else
grid->SetDividerPen(wxNullPen); grid->SetDividerPen(wxNullPen);
grid->Refresh(); grid->Refresh();
} }
void MyFrame::LeftCell(wxCommandEvent& WXUNUSED(event)) void MyFrame::LeftCell(wxCommandEvent& WXUNUSED(event))