- frame = wxGetApp().CreateChildFrame(doc, this, false);
-
- int width, height;
- frame->GetClientSize(&width, &height);
- textsw = new MyTextWindow(this, frame, wxPoint(0, 0), wxSize(width, height), wxTE_MULTILINE);
- frame->SetTitle(_T("TextEditView"));
-
-#ifdef __X__
- // X seems to require a forced resize
- int x, y;
- frame->GetSize(&x, &y);
- frame->SetSize(wxDefaultPosition.x, wxDefaultPosition.y, x, y);
-#endif
-
- frame->Show(true);
+ m_frame = wxGetApp().CreateChildFrame(doc, this, false);
+ m_text = new wxTextCtrl(m_frame, wxID_ANY, "",
+ wxPoint(0, 0), m_frame->GetClientSize(),
+ wxTE_MULTILINE);
+
+ m_frame->SetTitle("Text View");
+ m_frame->Show(true);
+