static WXFARPROC fnWndProcSpinCtrl = (WXFARPROC)NULL;
wxArraySpins wxSpinCtrl::m_svAllSpins;
-IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
-
BEGIN_EVENT_TABLE(wxSpinCtrl, wxSpinButton)
EVT_CHAR(wxSpinCtrl::OnChar)
EVT_SPIN(wxID_ANY, wxSpinCtrl::OnSpinChange)
{
case WXK_RETURN:
{
- wxCommandEvent vEvent( wxEVT_COMMAND_TEXT_ENTER
+ wxCommandEvent vEvent( wxEVT_TEXT_ENTER
,m_windowId
);
wxString sVal = wxGetWindowText(m_hWndBuddy);
wxSpinEvent& rEventSpin
)
{
- wxCommandEvent vEvent( wxEVT_COMMAND_SPINCTRL_UPDATED
+ wxCommandEvent vEvent( wxEVT_SPINCTRL
,GetId()
);
{
case SPBN_CHANGE:
{
- wxCommandEvent vEvent( wxEVT_COMMAND_TEXT_UPDATED, GetId() );
+ wxCommandEvent vEvent( wxEVT_TEXT, GetId() );
vEvent.SetEventObject(this);
wxString sVal = wxGetWindowText(m_hWndBuddy);