Don't generate any events from wxSpinCtrl and wxSpinCtrlDouble methods.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Aug 2013 17:00:00 +0000 (17:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Aug 2013 17:00:00 +0000 (17:00 +0000)
commitb736d59eb531794e6b1cef2b4997c517569ff0dd
treec0a8336ac726dc3881b6a477fe00a595280f0ef6
parent36a0190ebd5bd9a7302f60f6dcd608b80574e21c
Don't generate any events from wxSpinCtrl and wxSpinCtrlDouble methods.

After the changes of r53758 wxMSW didn't generate any wxEVT_TEXT events but
this was still the case for the generic version (and hence for
wxSpinCtrlDouble under MSW too) and wasn't documented.

Fix all versions to avoid sending events for programmatic actions, add unit
tests checking this behaviour and document it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/spinctlg.h
interface/wx/spinctrl.h
src/generic/spinctlg.cpp
src/gtk/spinctrl.cpp
tests/controls/spinctrldbltest.cpp
tests/controls/spinctrltest.cpp