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
This commit is contained in:
@@ -131,6 +131,11 @@ public:
|
||||
|
||||
/**
|
||||
Sets range of allowable values.
|
||||
|
||||
Notice that calling this method may change the value of the control if
|
||||
it's not inside the new valid range, e.g. it will become @a minVal if
|
||||
it is less than it now. However no @c wxEVT_COMMAND_SPINCTRL_UPDATED
|
||||
event is generated, even if it the value does change.
|
||||
*/
|
||||
void SetRange(int minVal, int maxVal);
|
||||
|
||||
|
Reference in New Issue
Block a user