]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/calendar/calendar.cpp
rewrote wxFileName::Normalize(), added a few methods, general clean up,
[wxWidgets.git] / samples / calendar / calendar.cpp
index fd5162b094977c484e87796310c216c4d452b374..d029c165fde0f1cc381cfb63eff5e81688a6be1f 100644 (file)
@@ -315,15 +315,15 @@ MyPanel::MyPanel(wxFrame *frame)
 
     wxLayoutConstraints *c = new wxLayoutConstraints;
     c->left.SameAs(this, wxLeft, 10);
 
     wxLayoutConstraints *c = new wxLayoutConstraints;
     c->left.SameAs(this, wxLeft, 10);
-    c->centreY.SameAs(m_calendar, wxCentreY);
+    c->centreY.SameAs(this, wxCentreY);
     c->height.AsIs();
     c->width.AsIs();
 
     m_date->SetConstraints(c);
 
     c = new wxLayoutConstraints;
     c->height.AsIs();
     c->width.AsIs();
 
     m_date->SetConstraints(c);
 
     c = new wxLayoutConstraints;
-    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);
     c->height.AsIs();
     c->width.AsIs();
 
     c->height.AsIs();
     c->width.AsIs();