: wxPanel(parent, wxID_ANY, pos, size, wxTAB_TRAVERSAL, title)
{
- WindowSizer->Add(DayPanel, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
- DayPanel->SetSizer(DaySizer);
+ windowSizer->Add(dayPanel, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
+ dayPanel->SetSizer(daySizer);
- DayText = new wxStaticText(DayPanel, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE);
- DaySizer->Add(DayText, 1, wxALL, 0);
- DayPanel->Layout();
+ dayText = new wxStaticText(dayPanel, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE);
+ daySizer->Add(dayText, 1, wxALL, 0);
+ dayPanel->Layout();
- this->SetSizer(WindowSizer);
+ this->SetSizer(windowSizer);
this->Layout();
}