X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ea2e20777c1a2d0451023f2f4ff4a9fd200bc2..1e4786bb37ff247ce8f11cd0f7305136357c6f40:/src/mac/carbon/spinbutt.cpp diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index a647fbef1f..08151678ac 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/spinbutt.cpp @@ -90,8 +90,8 @@ void wxSpinButton::SetRange(int minVal, int maxVal) { m_min = minVal; m_max = maxVal; - SetControlMaximum( (ControlHandle) m_macControl , maxVal ) ; - SetControlMinimum((ControlHandle) m_macControl , minVal ) ; + SetControl32BitMaximum( (ControlHandle) m_macControl , maxVal ) ; + SetControl32BitMinimum((ControlHandle) m_macControl , minVal ) ; } void wxSpinButton::MacHandleValueChanged( int inc ) @@ -118,9 +118,9 @@ void wxSpinButton::MacHandleValueChanged( int inc ) m_value = m_max; } - if ( oldValue - m_value == -1 ) + if ( m_value - oldValue == -1 ) scrollEvent = wxEVT_SCROLL_LINEDOWN ; - else if ( oldValue - m_value == 1 ) + else if ( m_value - oldValue == 1 ) scrollEvent = wxEVT_SCROLL_LINEUP ; else scrollEvent = wxEVT_SCROLL_THUMBTRACK ; @@ -134,7 +134,7 @@ void wxSpinButton::MacHandleValueChanged( int inc ) { m_value = oldValue ; } - SetControlValue( (ControlHandle) m_macControl , m_value ) ; + SetControl32BitValue( (ControlHandle) m_macControl , m_value ) ; /* always send a thumbtrack event */ if (scrollEvent != wxEVT_SCROLL_THUMBTRACK)