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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user