]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/grid.cpp
fix wxDateTime offset for Apple Developer Tools (SourceForge bug # 614010)
[wxWidgets.git] / samples / grid / grid.cpp
index fa992965432ed5f5e9c821b2b637ce350172eee7..8ede06bd2dc4a8706dadd52471197de2e8c1b116 100644 (file)
@@ -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))