0

By default a wxGrid acts like that: If a cell or multiple cells are selected and DEL/Backspace is pressed, the cursor jumps into the (first) cell selected and deletes the first character in that cell.

Is it possible to have an Excel - like behaviour in that when this action is performed, the whole content of the cell(s) is deleted?

4

1 回答 1

1

Just handle wxEVT_CHAR for wxGrid yourself and clear the cell contents when you get an event for one of those keys.

于 2016-06-17T15:03:48.057 回答