// Define my frame constructor
MyFrame::MyFrame()
- : wxFrame(NULL, wxID_ANY, _T("wxWindows Layout Demo"),
+ : wxFrame(NULL, wxID_ANY, _T("wxWidgets Layout Demo"),
wxDefaultPosition, wxDefaultSize,
wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
{
// Associate the menu bar with the frame
SetMenuBar(menu_bar);
+#if wxUSE_STATUSBAR
CreateStatusBar(2);
- SetStatusText(_T("wxWindows layout demo"));
-
+ SetStatusText(_T("wxWidgets layout demo"));
+#endif // wxUSE_STATUSBAR
// we want to get a dialog that is stretchable because it
// has a text ctrl in the middle. at the bottom, we have
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
{
- (void)wxMessageBox(_T("wxWindows GUI library layout demo\n"),
+ (void)wxMessageBox(_T("wxWidgets GUI library layout demo\n"),
_T("About Layout Demo"), wxOK|wxICON_INFORMATION);
}
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
wxNotebook *notebook = new wxNotebook( this, wxID_ANY );
- wxNotebookSizer *nbs = new wxNotebookSizer( notebook );
- topsizer->Add( nbs, 1, wxGROW );
+ topsizer->Add( notebook, 1, wxGROW );
wxButton *button = new wxButton( this, wxID_OK, _T("OK") );
topsizer->Add( button, 0, wxALIGN_RIGHT | wxALL, 10 );