- //------------------
- c = new wxLayoutConstraints;
- c->left.PercentOf(this, wxWidth, 10);
- c->right.PercentOf(this, wxWidth, 60);
- c->top.PercentOf(this, wxHeight, 10);
- c->bottom.PercentOf(this, wxHeight, 60);
- m_calendar->SetConstraints(c);
- //------------------
- c = new wxLayoutConstraints;
- c->left.SameAs(m_calendar, wxLeft, 10);
- c->top.SameAs(m_calendar, wxBottom);
+ c->left.SameAs(this, wxLeft, 10);
+ c->centreY.SameAs(this, wxCentreY);