private:
void OnUsersMenu(wxCommandEvent& cmd);
void OnWindowMenu(wxCommandEvent& cmd);
- wxTextCtrl *textWindow;
+ wxTreeCtrl *RoomList;
wxButton *do_cmd;
void InitToolBar(wxToolBar* toolBar);
// Set up the left-side thingie
- textWindow = new wxTextCtrl(
- this, -1, "", wxDefaultPosition, wxDefaultSize,
- wxTE_MULTILINE|wxSUNKEN_BORDER);
- textWindow->SetValue("Hic! A maus!");
+ RoomList = new wxTreeCtrl(
+ this, -1,
+ wxDefaultPosition, wxDefaultSize,
+ wxTR_HAS_BUTTONS | wxSUNKEN_BORDER,
+ wxDefaultValidator,
+ "RoomList");
+
+ RoomList->AddRoot(
+ "Room List",
+ -1,
+ -1,
+ NULL);
wxLayoutConstraints *t2 = new wxLayoutConstraints;
t2->top.SameAs(this, wxTop, 4);
t2->left.SameAs(this, wxLeft, 0);
t2->right.PercentOf(this, wxWidth, 25);
t2->bottom.SameAs(this, wxBottom, 0);
- textWindow->SetConstraints(t2);
+ RoomList->SetConstraints(t2);
wxLayoutConstraints *t3 = new wxLayoutConstraints;
t3->top.SameAs(this, wxTop, 4);