create the controls inside a panel

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-10-05 22:26:44 +00:00
parent 4fe82ce139
commit 8f41f92614
2 changed files with 8 additions and 6 deletions

View File

@@ -225,7 +225,8 @@ MyFrame::MyFrame(const wxChar *title, int x, int y, int w, int h)
menubar->Append(menuCol, _T("&Colour"));
SetMenuBar(menubar);
m_logWindow = new wxTextCtrl(this, -1, wxEmptyString,
m_panel = new wxPanel(this, -1);
m_logWindow = new wxTextCtrl(m_panel, -1, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE | wxSUNKEN_BORDER);
@@ -330,7 +331,7 @@ void MyFrame::RecreateList(long flags, bool withText)
{
delete m_listCtrl;
m_listCtrl = new MyListCtrl(this, LIST_CTRL,
m_listCtrl = new MyListCtrl(m_panel, LIST_CTRL,
wxDefaultPosition, wxDefaultSize,
flags |
wxSUNKEN_BORDER | wxLC_EDIT_LABELS);