From 1e4d96486a5822678b67a7ed10e940874fbad1f2 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Fri, 11 Oct 2002 09:09:39 +0000 Subject: [PATCH] make mdi.cpp resize for wxUniv/ Borland as well as wx11/gcc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/mdi/mdi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index e5833ef4e8..911d25cbdb 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -286,7 +286,7 @@ void MyFrame::OnSize(wxSizeEvent& event) // FIXME: On wxX11, we need the MDI frame to process this // event, but on other platforms this should not // be done. -#ifdef __WXX11__ +#ifdef __WXUNIVERSAL__ event.Skip(); #endif } @@ -443,6 +443,7 @@ void MyChild::OnChangeSize(wxCommandEvent& WXUNUSED(event)) 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"), @@ -454,6 +455,7 @@ void MyChild::OnChangeTitle(wxCommandEvent& WXUNUSED(event)) s_title = title; SetTitle(s_title); +//#endif } void MyChild::OnActivate(wxActivateEvent& event)