]> git.saurik.com Git - wxWidgets.git/commit - src/msw/spinctrl.cpp
Don't generate events from wxSpinCtrl::SetRange() in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Aug 2012 23:34:10 +0000 (23:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Aug 2012 23:34:10 +0000 (23:34 +0000)
commit532324df237338fafaddfc83d987b372f361c4b5
tree685a45649dbdac5f8515a064042541d5f29cc440
parent947873e263cc974ec958884641a6a53d7f0e339b
Don't generate events from wxSpinCtrl::SetRange() in wxMSW.

Other ports don't send wxEVT_COMMAND_SPINCTRL_UPDATED from SetRange() even if
the value changed because it was adjusted to fit into the new range and this
makes sense as this change is not due to a user action, so don't send this
event under wxMSW neither.

Also add a unit test checking for this behaviour.

Closes #14583.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
interface/wx/spinctrl.h
src/msw/spinctrl.cpp
tests/controls/spinctrltest.cpp