dlg now centered
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,6 +51,7 @@ bool MyApp::OnInit()
|
|||||||
dlg.SetAutoLayout(TRUE);
|
dlg.SetAutoLayout(TRUE);
|
||||||
dlg.SetSizer(sizer);
|
dlg.SetSizer(sizer);
|
||||||
sizer->Fit(&dlg);
|
sizer->Fit(&dlg);
|
||||||
|
dlg.Centre();
|
||||||
|
|
||||||
dlg.ShowModal();
|
dlg.ShowModal();
|
||||||
|
|
||||||
@@ -60,5 +61,5 @@ bool MyApp::OnInit()
|
|||||||
res << ar[i] << _T("\n");
|
res << ar[i] << _T("\n");
|
||||||
wxMessageBox(res);
|
wxMessageBox(res);
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user