X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cb9f0d0f82650b707adc39823a73531d080ffec..015e69f36dfbc469eef59456f973d0567e865d70:/samples/calendar/calendar.cpp diff --git a/samples/calendar/calendar.cpp b/samples/calendar/calendar.cpp index 1a05ab23d7..d029c165fd 100644 --- a/samples/calendar/calendar.cpp +++ b/samples/calendar/calendar.cpp @@ -299,9 +299,6 @@ void MyFrame::OnAllowYearUpdate(wxUpdateUIEvent& event) MyPanel::MyPanel(wxFrame *frame) : wxPanel(frame, -1) { - // using constraints doesn't work under GTK - the calendar window is never - // repainted after it had been moved at least once! -#if 1 SetAutoLayout(TRUE); wxString date; @@ -331,19 +328,6 @@ MyPanel::MyPanel(wxFrame *frame) c->width.AsIs(); m_calendar->SetConstraints(c); -#else - wxString date; - date.Printf("Selected date: %s", - wxDateTime::Today().FormatISODate().c_str()); - m_date = new wxStaticText(this, -1, date, wxPoint(10, 100)); - m_calendar = new wxCalendarCtrl(this, Calendar_CalCtrl, - wxDefaultDateTime, - wxPoint(200, 20), - wxDefaultSize, - wxCAL_MONDAY_FIRST | - wxCAL_SHOW_HOLIDAYS | - wxRAISED_BORDER); -#endif } void MyPanel::OnCalendar(wxCalendarEvent& event)