Fix selection of given value in wxTextEntryDialog

The given value in wxTextEntryDialog was not preselected as it was likely intended by the code because the SelectAll-Method of the wxTextCtrl was called before the value was set. Now the SelectAll-Method is called after setting the value in wxTextEntryDialog::TransferDataToWindow.
This commit is contained in:
mbaschnitzi
2016-04-05 09:57:22 +02:00
parent 7465237353
commit bd9171c2ad

View File

@@ -126,7 +126,6 @@ bool wxTextEntryDialog::Create(wxWindow *parent,
if ( style & wxCENTRE )
Centre( wxBOTH );
m_textctrl->SelectAll();
m_textctrl->SetFocus();
wxEndBusyCursor();
@@ -139,6 +138,7 @@ bool wxTextEntryDialog::TransferDataToWindow()
if ( m_textctrl )
{
m_textctrl->SetValue(m_value);
m_textctrl->SelectAll();
}
return wxDialog::TransferDataToWindow();