MyFrame *frame = new MyFrame("Calendar wxWindows sample",
wxPoint(50, 50), wxSize(450, 340));
MyFrame *frame = new MyFrame("Calendar wxWindows sample",
wxPoint(50, 50), wxSize(450, 340));
// success: wxApp::OnRun() will be called which will enter the main message
// loop and the application will run. If we returned FALSE here, the
// success: wxApp::OnRun() will be called which will enter the main message
// loop and the application will run. If we returned FALSE here, the
wxLayoutConstraints *c = new wxLayoutConstraints;
c->left.SameAs(this, wxLeft, 10);
wxLayoutConstraints *c = new wxLayoutConstraints;
c->left.SameAs(this, wxLeft, 10);
- c->left.SameAs(m_date, wxRight, 10);
- c->top.SameAs(this, wxTop, 10);
+ c->left.SameAs(m_date, wxRight, 20);
+ c->centreY.SameAs(this, wxCentreY);