wxFrame(frame, -1, title, pos, size)
{
// set the icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__
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();
splitter->SplitHorizontally( leftCanvas, rightCanvas );
}
-void MyFrame::SplitVertical(wxCommandEvent& event)
+void MyFrame::SplitVertical(wxCommandEvent& WXUNUSED(event) )
{
if ( splitter->IsSplit() )
splitter->Unsplit();
splitter->SplitVertically( leftCanvas, rightCanvas );
}
-void MyFrame::Unsplit(wxCommandEvent& event)
+void MyFrame::Unsplit(wxCommandEvent& WXUNUSED(event) )
{
if ( splitter->IsSplit() )
splitter->Unsplit();
{
if ( GetStatusBar()->GetStatusText(0) != "Ready" )
SetStatusText("Ready");
+
+ wxFrame::OnIdle(event);
}
MyCanvas::MyCanvas(wxWindow* parent, int x, int y, int w, int h) :