wxSpinCtrl now sens TEXT_UPDATED events as in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,6 +71,10 @@
|
||||
#include "wx/caret.h"
|
||||
#endif // wxUSE_CARET
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
#include "wx/spinctrl.h"
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
@@ -3227,6 +3231,17 @@ bool wxWindow::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
|
||||
return GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
#if wxUSE_SPINCTRL
|
||||
else
|
||||
{
|
||||
// the text ctrl which is logically part of wxSpinCtrl sends WM_COMMAND
|
||||
// notifications to its parent which we want to reflect back to
|
||||
// wxSpinCtrl
|
||||
wxSpinCtrl *spin = wxSpinCtrl::GetSpinForTextCtrl(control);
|
||||
if ( spin && spin->ProcessTextCommand(cmd, id) )
|
||||
return TRUE;
|
||||
}
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user