wxSheet And wxEVT_SHEET_CELL_VALUE_CHANGING

BlitzMax Forums/Brucey's Modules/wxSheet And wxEVT_SHEET_CELL_VALUE_CHANGING

DavidDC(Posted 2008) [#1]
I'm trying to hook into an event generated when the sheet cell contents are changing - such as when the user is typing something in.

The obvious suspect is:

wxEVT_SHEET_CELL_VALUE_CHANGING

But hooking into that seems to give identical behaviour to

wxEVT_SHEET_CELL_VALUE_CHANGED

So as it stands, unless the user clicks another cell or tabs out of the cell, the program remains unaware that cell contents were being modified.

The end result is that the app can miss the last change the user made before say, quitting a dialog.

Any ideas much appreciated. Thanks.


Brucey(Posted 2008) [#2]
I'm guessing that a focus-lost event isn't being handled at some point in the sheet.

Since you can detect when a cell starts editing, might it be possible to set a flag and handle the cell in some way in order to get the current text from it?
(see wxEVT_SHEET_EDITOR_ENABLED, wxEVT_SHEET_EDITOR_DISABLED and perhaps, wxEVT_SHEET_EDITOR_CREATED).


DavidDC(Posted 2008) [#3]
Thanks Brucey. I've emailed the wxSheet maintainer. Fingers crossed.


Glenn Dodd(Posted 2009) [#4]
did anything come from this?


DavidDC(Posted 2009) [#5]
did anything come from this?


That would be a "no".