From: Václav Slavík Date: Sun, 17 Mar 2002 00:53:17 +0000 (+0000) Subject: fix HTML browser setup dialog under MSW and make the 'OK' button default X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/33f71b3cf4071d772491feea1c702a10995abadb?ds=sidebyside;hp=300b5dfabc6f7f0d9fc3f7865374b43e79c8f465 fix HTML browser setup dialog under MSW and make the 'OK' button default git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 790cf520fc..a48ad5c3ae 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -984,12 +984,14 @@ class wxHtmlHelpFrameOptionsDialog : public wxDialog topsizer->Add(new wxStaticText(this, -1, _("Preview:")), 0, wxLEFT | wxTOP, 10); - topsizer->Add(TestWin = new wxHtmlWindow(this, -1, wxDefaultPosition, wxSize(-1, 150), + topsizer->Add(TestWin = new wxHtmlWindow(this, -1, wxDefaultPosition, wxSize(20, 150), wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER), 1, wxEXPAND | wxLEFT|wxTOP|wxRIGHT, 10); sizer = new wxBoxSizer(wxHORIZONTAL); - sizer->Add(new wxButton(this, wxID_OK, _("OK")), 0, wxALL, 10); + wxButton *ok; + sizer->Add(ok = new wxButton(this, wxID_OK, _("OK")), 0, wxALL, 10); + ok->SetDefault(); sizer->Add(new wxButton(this, wxID_CANCEL, _("Cancel")), 0, wxALL, 10); topsizer->Add(sizer, 0, wxALIGN_RIGHT);