]> git.saurik.com Git - wxWidgets.git/commit
1. wxGridCellEditor::SetSize needs to use the wxSIZE_ALLOW_MINUS_ONE
authorRobin Dunn <robin@alldunn.com>
Tue, 22 Feb 2000 20:02:48 +0000 (20:02 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 22 Feb 2000 20:02:48 +0000 (20:02 +0000)
commitea179c7b4a2d880fadd5cae5f25a38c88174dde9
tree46317dbd5bc09086b64192ad8f2216cd65e8be19
parentebaad2ccc7fe8bc698af75206a208491779f032e
1. wxGridCellEditor::SetSize needs to use the wxSIZE_ALLOW_MINUS_ONE
flag otherwise the choice editor will not move to row 1, (the wxRect
given has a -1 y value.)

2. I fixed wxGridCellChoiceEditor::BeginEdit to not only set the
current value into the text field, but also to make it the current
selection in the dropdown.

3. EndEdit was getting called twice for each cell when you leave it
with the TAB or ENTER.  I commented out a call to SaveEditControlValue
in SetCurrentCell to take care of this.  It shouldn't hurt anything
since SaveEditControlValue is also called within the
EnableCellEditControl(FALSE) which gets called next.  If this causes
no problems for anybody it can be removed entirely.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/newgrid/griddemo.cpp