From 3b6c3fc8c55bca8121dfff0201fdbea518948a4c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Aug 2005 13:27:33 +0000 Subject: [PATCH] test centering file dialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dialogs/dialogs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 14bbd5e762..af3bbd1ed5 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -682,6 +682,7 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) ) ); dialog.SetDirectory(wxGetHomeDir()); + dialog.CentreOnParent(); if (dialog.ShowModal() == wxID_OK) {