-
- wxLayoutConstraints *c;
-
- // Top-left listbox
- c = new wxLayoutConstraints;
- c->left.SameAs(this, wxLeft);
- c->top.SameAs(this, wxTop);
- c->right.PercentOf(this, wxRight, 50);
- c->height.PercentOf(this, wxHeight, 30);
- m_ctrlFile->SetConstraints(c);
-
- // Top-right listbox
- c = new wxLayoutConstraints;
- c->left.SameAs (m_ctrlFile, wxRight);
- c->top.SameAs (this, wxTop);
- c->right.SameAs (this, wxRight);
- c->height.PercentOf(this, wxHeight, 30);
- m_ctrlText->SetConstraints(c);
-
- // Lower text control
- c = new wxLayoutConstraints;
- c->left.SameAs (this, wxLeft);
- c->right.SameAs (this, wxRight);
- c->height.PercentOf(this, wxHeight, 50);
- c->top.SameAs(m_ctrlText, wxBottom);
- m_ctrlLog->SetConstraints(c);
-
- SetAutoLayout(TRUE);
+#endif // wxUSE_LOG
+#endif // wxUSE_DRAG_AND_DROP
+
+ wxBoxSizer *m_sizer_top = new wxBoxSizer( wxHORIZONTAL );
+ m_sizer_top->Add(m_ctrlFile, 1, wxEXPAND );
+ m_sizer_top->Add(m_ctrlText, 1, wxEXPAND );
+
+ wxBoxSizer *m_sizer = new wxBoxSizer( wxVERTICAL );
+ m_sizer->Add(m_sizer_top, 1, wxEXPAND );
+#if wxUSE_LOG
+ m_sizer->Add(m_ctrlLog, 1, wxEXPAND);
+#endif // wxUSE_LOG
+ m_sizer->Add(0,50);
+
+ SetSizer( m_sizer );
+ m_sizer->SetSizeHints( this );
+
+ // copy data by default but allow moving it as well
+ m_moveByDefault = false;
+ m_moveAllow = true;
+ menu_bar->Check(Menu_DragMoveAllow, true);