szrMain = new wxBoxSizer( wxVERTICAL );
this->SetSizer(szrMain);
- this->SetSize(wxSize(350, 500));
-
- //scwMain = new wxScrolledWindow();
-
- //szrScrolled = new wxBoxSizer( wxHORIZONTAL );
- //scwMain->SetSizer(szrScrolled);
-
- //szrMain->Add(scwMain, 0, wxEXPAND, 5);
- //szrMain->Layout();
-
+ this->SetSize(wxSize(350, 500));
}
XCCalendarList::~XCCalendarList(){
+ // Delete the calendar lists.
+
+ for (vector<XCCalendarListAccountCtrl*>::iterator accountCtrlIter = accountControlList.begin();
+ accountCtrlIter != accountControlList.end(); accountCtrlIter++){
+
+ delete *accountCtrlIter;
+
+ }
+
+ accountControlList.clear();
+
+ this->SetSizer(nullptr, true);
+
}
void XCCalendarList::UpdateCalendarList(CalendarDataStorage *dataStorage){
// Set the updated checksum.
checksumUpdate = currentChecksum.checksumValue;
+
+ this->Layout();
}