X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fhtml_dialog.cc;h=19c3aaf2a11591987678cf666f105d66c5e7cbd1;hp=59bc8a3e8fe2b3ee896b7e1393764e90c83644f5;hb=704bc0f8be05ddca94a3853a6e112f22f8f2df70;hpb=eab577b950069b6a22034c22e67b7cc16753cbd8 diff --git a/src/wx/html_dialog.cc b/src/wx/html_dialog.cc index 59bc8a3e8..19c3aaf2a 100644 --- a/src/wx/html_dialog.cc +++ b/src/wx/html_dialog.cc @@ -35,7 +35,7 @@ using namespace boost::placeholders; #endif -HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html) +HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html, bool ok) : wxDialog (parent, wxID_ANY, title) { auto sizer = new wxBoxSizer (wxVERTICAL); @@ -61,7 +61,14 @@ HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html) SetSize (800, -1); /* Set height */ - SetSize (h->GetInternalRepresentation()->GetWidth(), h->GetInternalRepresentation()->GetHeight() + 64); + SetSize (h->GetInternalRepresentation()->GetWidth(), h->GetInternalRepresentation()->GetHeight() + 256); + + if (ok) { + auto buttons = CreateSeparatedButtonSizer(wxOK); + if (buttons) { + sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder()); + } + } }