X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/24f932d22a085ce899b94c98578f475782c75bf6..1d0edc0f7306aac10a75c545f9cace25d3cee83d:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 709107cbf6..bc618a2345 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -1102,10 +1102,16 @@ wxFileDialog::wxFileDialog(wxWindow *parent, #endif buttonsizer->Add( butNewDir, 0, wxALL, 5 ); +#ifdef __WXX11__ + mainsizer->Add( buttonsizer, 0, wxALL | wxEXPAND, 0 ); +#else mainsizer->Add( buttonsizer, 0, wxALL | wxEXPAND, 5 ); +#endif wxBoxSizer *staticsizer = new wxBoxSizer( wxHORIZONTAL ); +#ifndef __WXX11__ staticsizer->Add( new wxStaticText( this, -1, _("Current directory:") ), 0, wxRIGHT, 10 ); +#endif m_static = new wxStaticText( this, -1, m_dir ); staticsizer->Add( m_static, 1 ); mainsizer->Add( staticsizer, 0, wxEXPAND | wxLEFT|wxRIGHT|wxBOTTOM, 10 ); @@ -1397,6 +1403,8 @@ void wxFileDialog::OnHome( wxCommandEvent &WXUNUSED(event) ) wxString dir; m_list->GetDir( dir ); m_static->SetLabel( dir ); + + m_text->SetFocus(); } void wxFileDialog::OnNew( wxCommandEvent &WXUNUSED(event) )