]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
added support for wxALIGN_XXX in wxStaticBox
[wxWidgets.git] / samples / controls / controls.cpp
index 8c696f260ecc9cddb7cc012406a985d58e4ad10c..8e20cbb4063f3f05a398af0104a1b8a2fc4de4e7 100644 (file)
@@ -676,7 +676,10 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
     m_slider = new wxSlider( panel, ID_SLIDER, 0, 0, 200, wxPoint(18,90), wxSize(155,-1),
                              wxSL_AUTOTICKS | wxSL_LABELS );
     m_slider->SetTickFreq(40, 0);
-    (void)new wxStaticBox( panel, -1, "&Explanation", wxPoint(230,10), wxSize(270,130) );
+    (void)new wxStaticBox( panel, -1, "&Explanation",
+                           wxPoint(230,10), wxSize(270,130),
+                           wxALIGN_CENTER );
+
 #ifdef __WXMOTIF__
     // No wrapping text in wxStaticText yet :-(
     (void)new wxStaticText( panel, -1,