X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94f5392355df17ef8cd4884637a1ce71a07dd685..c3732409acc7a1e0b3cdb1f0a5dec7cc49a4b28b:/src/generic/fdrepdlg.cpp diff --git a/src/generic/fdrepdlg.cpp b/src/generic/fdrepdlg.cpp index 1d14141be1..787cf1cb5f 100644 --- a/src/generic/fdrepdlg.cpp +++ b/src/generic/fdrepdlg.cpp @@ -93,7 +93,11 @@ bool wxGenericFindReplaceDialog::Create(wxWindow *parent, { if ( !wxDialog::Create(parent, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, - wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | style) ) + wxDEFAULT_DIALOG_STYLE +#if !defined(__SMARTPHONE__) && !defined(__POCKETPC__) + | wxRESIZE_BORDER +#endif + | style) ) { return false; } @@ -170,7 +174,9 @@ bool wxGenericFindReplaceDialog::Create(wxWindow *parent, wxBoxSizer *bttnsizer = new wxBoxSizer(wxVERTICAL); - bttnsizer->Add(new wxButton(this, wxID_FIND), 0, wxALL, 3); + wxButton* btn = new wxButton(this, wxID_FIND); + btn->SetDefault(); + bttnsizer->Add(btn, 0, wxALL, 3); bttnsizer->Add(new wxButton(this, wxID_CANCEL), 0, wxALL, 3); @@ -210,10 +216,12 @@ bool wxGenericFindReplaceDialog::Create(wxWindow *parent, SetAutoLayout( true ); SetSizer( topsizer ); +#if !defined(__SMARTPHONE__) && !defined(__POCKETPC__) topsizer->SetSizeHints( this ); topsizer->Fit( this ); Centre( wxBOTH ); +#endif m_textFind->SetFocus();