]> git.saurik.com Git - wxWidgets.git/commitdiff
dlg now centered
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 8 May 2001 22:29:38 +0000 (22:29 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 8 May 2001 22:29:38 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/samples/gizmos/editlbox/test.cpp

index eb96a93698fbcdccc4c91cb63e7cf2de7269035b..d1976f6c6b27ccd81b771dd3e553c93406688eca 100644 (file)
@@ -51,6 +51,7 @@ bool MyApp::OnInit()
     dlg.SetAutoLayout(TRUE);
     dlg.SetSizer(sizer);
     sizer->Fit(&dlg);
     dlg.SetAutoLayout(TRUE);
     dlg.SetSizer(sizer);
     sizer->Fit(&dlg);
+       dlg.Centre();
   
     dlg.ShowModal();
 
   
     dlg.ShowModal();
 
@@ -60,5 +61,5 @@ bool MyApp::OnInit()
         res << ar[i] << _T("\n");
     wxMessageBox(res);
     
         res << ar[i] << _T("\n");
     wxMessageBox(res);
     
-    return TRUE;
+    return FALSE;
 }
 }