]> git.saurik.com Git - wxWidgets.git/commitdiff
All editors that derive from wxGridCellTextEditor will now select the
authorRobin Dunn <robin@alldunn.com>
Sat, 24 Aug 2002 21:40:43 +0000 (21:40 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 24 Aug 2002 21:40:43 +0000 (21:40 +0000)
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

index c31fa3344d85459aabe8644e4c9f48a626ec19cb..d639a8254422db3a27e1767bf962901e006eb98e 100644 (file)
@@ -629,6 +629,7 @@ void wxGridCellTextEditor::DoBeginEdit(const wxString& startValue)
 {
     Text()->SetValue(startValue);
     Text()->SetInsertionPointEnd();
+    Text()->SetSelection(-1,-1);
     Text()->SetFocus();
 }