i'm trying to program the front-end for a schedule-application. In my main tab should be two lists (one above the other one). But this seems to be impossible (I've sat yesterday the half day and today for three more hours). So this is my result:
And this is the common part of my Code:
// LayoutManagement - Main
sizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(sizer);
// Tabpane
tab_pane = new wxNotebook(this,TAB_PANE);
sizer->Add(tab_pane,1,wxEXPAND);
// Overview tab
wxBoxSizer *ot_sizer = new wxBoxSizer(wxVERTICAL);
overview_tab = new wxNotebookPage(tab_pane,TAB_OVERVIEW);
overview_tab->SetSizer(ot_sizer);
tab_pane->AddPage(overview_tab,_("Countdown und Nachrichten"),true);
// Schedule
schedule_list = new wxListBox(overview_tab, SCHEDULE_LIST);
ot_sizer->Add(schedule_list,1,wxEXPAND);
// NewsList
news_list = new wxListBox(overview_tab,NEWS_LIST);
ot_sizer->Add(news_list,3,wxEXPAND);
And my header (part):
wxListBox *schedule_list;
wxBoxSizer *sizer;
wxListBox *news_list;
wxNotebook *tab_pane;
wxNotebookPage *overview_tab, *settings_tab, *about_end_tab;
What i'm doing wrong?
Greetings
Michael
(Sorry for my bad english)