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.
This commit is contained in:
Kasper 2020-07-15 16:25:52 +02:00 committed by Vadim Zeitlin
parent c325087bce
commit 69da383e96

View File

@ -400,7 +400,9 @@ MyFlexSizerFrame::MyFlexSizerFrame(wxFrame* parent)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
MyNotebookWithSizerDialog::MyNotebookWithSizerDialog(wxWindow *parent, const wxString &title) 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 // Begin with first hierarchy: a notebook at the top and
// and OK button at the bottom. // and OK button at the bottom.