X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3417c2cd3d5cb05451270b5a09fe2355406158a3..eb254be6df56f99bd2691e4ca38d59004d2f39f5:/samples/layout/layout.cpp diff --git a/samples/layout/layout.cpp b/samples/layout/layout.cpp index 1392d68921..14532691e3 100644 --- a/samples/layout/layout.cpp +++ b/samples/layout/layout.cpp @@ -267,7 +267,7 @@ NewSizerFrame::NewSizerFrame(wxFrame *frame, char *title, int x, int y ): // has a text ctrl in the middle. at the bottom, we have // two buttons which. - wxBox *topsizer = new wxBox( wxVERTICAL ); + wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL ); // 1) top: create wxStaticText with minimum size equal to its default size topsizer->Add( @@ -296,7 +296,7 @@ NewSizerFrame::NewSizerFrame(wxFrame *frame, char *title, int x, int y ): // 4) bottom: create two centred wxButtons - wxBox *button_box = new wxBox( wxHORIZONTAL ); + wxBoxSizer *button_box = new wxBoxSizer( wxHORIZONTAL ); button_box->Add( new wxButton( this, -1, "Two buttons in a box" ), 0, // make horizontally unstretchable