Use SelectAll() instead of SetSelection(-1, -1).
The former is more clear and also shorter. Closes #14701. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,7 +122,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent,
|
||||
if ( style & wxCENTRE )
|
||||
Centre( wxBOTH );
|
||||
|
||||
m_textctrl->SetSelection(-1, -1);
|
||||
m_textctrl->SelectAll();
|
||||
m_textctrl->SetFocus();
|
||||
|
||||
wxEndBusyCursor();
|
||||
|
Reference in New Issue
Block a user