From 505f70dec68ba08ade903e8e9e0eb41ebd36531c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 24 Aug 2002 21:40:43 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.50.0