wxSpinCtrl & wxWidgets 3.0.2

Post here wxCrafter related issues / features / bugs
nezos
CodeLite Veteran
Posts: 59
Joined: Wed Dec 31, 2014 6:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

wxSpinCtrl & wxWidgets 3.0.2

Post by nezos »

In case someone else will come up with this:

For wxWidgets 3.0.2 the wxEVT_COMMAND_SPINCTRL_UPDATED does not fire, by checking the header file the event to be used is wxEVT_SPINCTRL

Use the ObjectEventFunction with the argument (wxSpinEvent& event).
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxSpinCtrl & wxWidgets 3.0.2

Post by eranif »

Strange, from the source files there is a backward compatibility code (include\wx\spinctrl.h):

Code: Select all

// old wxEVT_COMMAND_* constants
#define wxEVT_COMMAND_SPINCTRL_UPDATED         wxEVT_SPINCTRL

So it should be fired..

Eran
Make sure you have read the HOW TO POST thread
nezos
CodeLite Veteran
Posts: 59
Joined: Wed Dec 31, 2014 6:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxSpinCtrl & wxWidgets 3.0.2

Post by nezos »

You are right it's not the event wxEVT_COMMAND_SPINCTRL_UPDATED.

It is the function that needs to have as argument (wxSpinEvent& event). Try to compile it with (wxCommandEvent &event) and it will fail (bind it not in the base class but in the derived).
Post Reply