From 17e7431567f017c975ba4926b2ff426d5c0a4b7c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 4 Jan 2003 11:04:39 +0000 Subject: [PATCH] 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 --- samples/grid/grid.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/samples/grid/grid.cpp b/samples/grid/grid.cpp index fa99296543..8ede06bd2d 100644 --- a/samples/grid/grid.cpp +++ b/samples/grid/grid.cpp @@ -1,6 +1,10 @@ /* * File: grid.cpp * Purpose: wxGrid test + + PLEASE NOTE: this sample is deprecated. See + newgrid for a sample based on the newer wxGrid API. + * Author: Julian Smart * Created: 1995 * Updated: @@ -152,6 +156,8 @@ bool MyApp::OnInit(void) // Show the frame 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); return TRUE; } @@ -240,7 +246,7 @@ void MyFrame::ToggleDividers(wxCommandEvent& WXUNUSED(event)) else grid->SetDividerPen(wxNullPen); -grid->Refresh(); + grid->Refresh(); } void MyFrame::LeftCell(wxCommandEvent& WXUNUSED(event))