SetMenuBar(menuBar);
#endif // wxUSE_MENUS
+#if wxUSE_STATUSBAR
// create status bar
CreateStatusBar();
+#endif // wxUSE_STATUSBAR
// create child controls
(unsigned long)nDpy));
}
- wxNotebookSizer *notebookSizer = new wxNotebookSizer(m_notebook);
- panel->SetSizer(notebookSizer);
- notebookSizer->Fit(this);
-
+ wxBoxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
+ sizer->Add(m_notebook, 1, wxEXPAND);
+ panel->SetSizer(sizer);
+ sizer->Fit(this);
+ sizer->SetSizeHints(this);
}
wxString MyFrame::VideoModeToText(const wxVideoMode& mode)
void MyFrame::OnFromPoint(wxCommandEvent& WXUNUSED(event))
{
+#if wxUSE_STATUSBAR
SetStatusText(_T("Press the mouse anywhere..."));
+#endif // wxUSE_STATUSBAR
CaptureMouse();
}