From bbd503412123a0969da36060320c9c2626f0e88e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 27 Oct 2009 16:39:01 +0000 Subject: [PATCH] Make the preview frame float on parent by default. Otherwise it is hidden when the parent is a modal dialog, at least under wxGTK. This is a backport of r58154 from trunk and closes #10341. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/prntbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/prntbase.h b/include/wx/prntbase.h index 605603e226..394c525dbb 100644 --- a/include/wx/prntbase.h +++ b/include/wx/prntbase.h @@ -370,8 +370,8 @@ public: const wxString& title = wxT("Print Preview"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxT("frame")); + long style = wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT, + const wxString& name = wxFrameNameStr); virtual ~wxPreviewFrame(); void OnCloseWindow(wxCloseEvent& event);