subframe->Show(TRUE);
}
-void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
+void MyFrame::OnSize(wxSizeEvent& event)
{
int w, h;
GetClientSize(&w, &h);
textWindow->SetSize(0, 0, 200, h);
GetClientWindow()->SetSize(200, 0, w - 200, h);
+
+ // FIXME: On wxX11, we need the MDI frame to process this
+ // event, but on other platforms this should not
+ // be done.
+#ifdef __WXUNIVERSAL__
+ event.Skip();
+#endif
}
void MyFrame::InitToolBar(wxToolBar* toolBar)
void MyChild::OnChangeTitle(wxCommandEvent& WXUNUSED(event))
{
+//#if wxUSE_TEXTDLG
static wxString s_title = _T("Canvas Frame");
wxString title = wxGetTextFromUser(_T("Enter the new title for MDI child"),
s_title = title;
SetTitle(s_title);
+//#endif
}
void MyChild::OnActivate(wxActivateEvent& event)