From: Robin Dunn Date: Sat, 24 Aug 2002 21:40:43 +0000 (+0000) Subject: All editors that derive from wxGridCellTextEditor will now select the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/505f70dec68ba08ade903e8e9e0eb41ebd36531c?ds=sidebyside All editors that derive from wxGridCellTextEditor will now select the existing value when the editor is started, just like a wxTextCtrl now does in normal use. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index c31fa3344d..d639a82544 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -629,6 +629,7 @@ void wxGridCellTextEditor::DoBeginEdit(const wxString& startValue) { Text()->SetValue(startValue); Text()->SetInsertionPointEnd(); + Text()->SetSelection(-1,-1); Text()->SetFocus(); }