From 69da383e96de4f9d05138cf24619b532470b46a8 Mon Sep 17 00:00:00 2001 From: Kasper Date: Wed, 15 Jul 2020 16:25:52 +0200 Subject: [PATCH] Make a dialog with a notebook in the dialog sample resizeable It helps demonstrating how the layout works and is consistent with the other windows in the sample (which are frames and so are resizeable by default). Closes #18830. --- samples/layout/layout.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/layout/layout.cpp b/samples/layout/layout.cpp index 8eb979722f..df317d7275 100644 --- a/samples/layout/layout.cpp +++ b/samples/layout/layout.cpp @@ -400,7 +400,9 @@ MyFlexSizerFrame::MyFlexSizerFrame(wxFrame* parent) // ---------------------------------------------------------------------------- MyNotebookWithSizerDialog::MyNotebookWithSizerDialog(wxWindow *parent, const wxString &title) - : wxDialog(parent, wxID_ANY, wxString(title)) + : wxDialog(parent, wxID_ANY, wxString(title), + wxDefaultPosition, wxDefaultSize, + wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) { // Begin with first hierarchy: a notebook at the top and // and OK button at the bottom.