Ticket #14742 (infoneeded_new defect)
wxSpinCtrl::SetValue(const wxString&) doesn't update m_oldValue (internal counter) in wxMSW
|Reported by:||staticinline||Owned by:|
wxSpinCtrl::SetValue(const wxString&) doesn't (but should) update m_oldValue like wxSpinCtrl::SetValue(int val) does, under wxMSW.
The actual problem I observed was that SendSpinUpdate was sometimes not triggered from wxSpinCtrl::MSWOnScroll due to m_oldValue != new_value being incorrectly false following a call to wxSpinCtrl::SetValue(const wxString&). I changed my own code to use wxSpinCtrl::SetValue(int val), which fixes it for me and is better, but others may still run into the problem.