wxGrid and wxGridCellChoiceEditor and Enter key

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ddv
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Dec 18, 2006 4:23 pm

wxGrid and wxGridCellChoiceEditor and Enter key

Post by ddv » Thu Apr 12, 2007 2:56 pm

Hello, I know this was (little) discussed but I still don't know the full way (without changing the wxWidgets sources) to have a working editable wxGrid.

With a wxGridCellChoiceEditor, the only key that make a EVT_GRID_CELL_CHANGE event is the TAB.
If I type some text in the combo and I press Enter, or if I select some text in the list and I press Enter, nothing happens except the cursor go to the next cell.
Same happens if I select some text in the list with the mouse, so this does not seems to be only an key problem.

I tried making my own wxGridCellChoiceEditor creating a combobox with the wxTE_PROCESS_ENTER flag but it changes nothing.

This is an very important bug, because this make the grid unusable for edition, and I can't imagine nobody have an acceptable solution.

I am using wx 2.6.3 but this bug does not seem to be fixed in the 2.8.0 ?

Thanks for any help.

Note: wxWidgets 2.6.3, Windows 2K

Post Reply