jacfrosty wrote:Hi,
I need a little help, I can't seem to be able to trap an event that lets me know when I change an item in a combo box cell.
I need to change some other cells depending what is selected in a combo box, I can only seem to do this when I actually move off the combo cell not straight after the change.
Any help would be very grateful.
Regards
jacfrosty.
I didn't add this because I couldn't see a need for the developer to validate such a selection. After all, why prevent a selection from a list of entries which have already been validated?
Must admit that I didn't think anyone would want to trap a selection as you've described else I would probably have included it.
I'm a little reluctant to introduce another CellCallback message as there are 10 at the moment and if I'm not careful, we'll soon end up with an unwieldly number. I don't want to make the egrid library any more complex than it has to be.
What if instead of introducing another message, I instead pass on to your CellCallback function all Windows messages which the library does not process? In this way you could check for the #CBN_SELCHANGE notification message yourself etc. I'm afraid that it would not be a simple matter of using a window callback to trap this message yourself because of the way the egrid library operates. You'd have to subclass the egrid, which is a little risky if you don't pass on all appropriate messages to the library to subsequently handle.
It would of course also open up a few more options as well.
I may look like a mule, but I'm not a complete ass.