- wxLayoutConstraints *c = new wxLayoutConstraints;
- c->top.SameAs (this, wxTop);
- c->left.SameAs (this, wxLeft);
- c->right.SameAs (this, wxRight);
- c->height.PercentOf (this, wxHeight, 66);
- m_listCtrl->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->top.Below (m_listCtrl);
- c->left.SameAs (this, wxLeft);
- c->right.SameAs (this, wxRight);
- c->bottom.SameAs (this, wxBottom);
- m_logWindow->SetConstraints(c);
- SetAutoLayout(TRUE);
-
- for ( int i = 0; i < 30; i++ )
- {
- long idx = m_listCtrl->InsertItem(i, wxString::Format(_T("Item %d"), i));
- m_listCtrl->SetItemData(idx, i*i);
- }