I am quite sure that the code I suggested you try, from Oct 26, does use just a single function handling wxEVT_SPINCTRL?gtafan wrote:Please don`t get it wrong, but your example uses 2 handler functions, which I defenetly don`t want to have.
As I tried hard to explain in one of my previous post, the two events serve different purposes and you may need both. You usually want to handle wxEVT_SPINCTRL, you do not need the other one unless you need to handle the changes as the users types them.gtafan wrote:I just need to know when the Value of SpinCtrl was updated.Is there posibly a way to disable the spin buttons?
If you do not want the spin buttons, there is little reason to use wxSpinCtrl, just use wxTextCtrl with an appropriate validator...