]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/splitter/test.cpp
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / splitter / test.cpp
index ba3732986c212cc3df7535ec5db8f9e4fd7f0966..4d749c959b6a259d83b983d59560ca4aa9fe4540 100644 (file)
@@ -113,7 +113,7 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons
        wxFrame(frame, -1, title, pos, size)
 {
        // set the icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
        SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
@@ -163,12 +163,12 @@ bool MyFrame::OnClose()
        return TRUE;
 }
 
-void MyFrame::Quit(wxCommandEvent& event)
+void MyFrame::Quit(wxCommandEvent& WXUNUSED(event) )
 {
        Close(TRUE);
 }
 
-void MyFrame::SplitHorizontal(wxCommandEvent& event)
+void MyFrame::SplitHorizontal(wxCommandEvent& WXUNUSED(event) )
 {
     if ( splitter->IsSplit() )
         splitter->Unsplit();
@@ -177,7 +177,7 @@ void MyFrame::SplitHorizontal(wxCommandEvent& event)
     splitter->SplitHorizontally( leftCanvas, rightCanvas );
 }
 
-void MyFrame::SplitVertical(wxCommandEvent& event)
+void MyFrame::SplitVertical(wxCommandEvent& WXUNUSED(event) )
 {
     if ( splitter->IsSplit() )
         splitter->Unsplit();
@@ -186,7 +186,7 @@ void MyFrame::SplitVertical(wxCommandEvent& event)
     splitter->SplitVertically( leftCanvas, rightCanvas );
 }
 
-void MyFrame::Unsplit(wxCommandEvent& event)
+void MyFrame::Unsplit(wxCommandEvent& WXUNUSED(event) )
 {
     if ( splitter->IsSplit() )
         splitter->Unsplit();
@@ -211,6 +211,8 @@ void MyFrame::OnIdle(wxIdleEvent& event)
 {
     if ( GetStatusBar()->GetStatusText(0) != "Ready" )
         SetStatusText("Ready");
+       
+       wxFrame::OnIdle(event);
 }
 
 MyCanvas::MyCanvas(wxWindow* parent, int x, int y, int w, int h) :