Ticket #14742 (infoneeded_new defect)
wxSpinCtrl::SetValue(const wxString&) doesn't update m_oldValue (internal counter) in wxMSW
| Reported by: | staticinline | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | 2.9-svn |
| Keywords: | Cc: | ||
| Blocked By: | Patch: | no | |
| Blocking: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
