X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4eb5a0ec0421b3dba1c46c1dcb27a711af4bec36..79b7701c0bc547dc4b579258c7116700e5925162:/src/osx/spinbutt_osx.cpp diff --git a/src/osx/spinbutt_osx.cpp b/src/osx/spinbutt_osx.cpp index b8c669c154..d9b99b02b0 100644 --- a/src/osx/spinbutt_osx.cpp +++ b/src/osx/spinbutt_osx.cpp @@ -40,10 +40,10 @@ bool wxSpinButton::Create( wxWindow *parent, if (!parent) return false; - + m_peer = wxWidgetImpl::CreateSpinButton( this , parent, id, 0, m_min, m_max, pos, size, style, GetExtraStyle() ); - + MacPostControlCreate( pos, size ); return true; @@ -69,9 +69,9 @@ void wxSpinButton::SetRange(int minVal, int maxVal) m_max = maxVal; m_peer->SetMaximum( maxVal ); m_peer->SetMinimum( minVal ); -} - -void wxSpinButton::SendThumbTrackEvent() +} + +void wxSpinButton::SendThumbTrackEvent() { wxSpinEvent event( wxEVT_SCROLL_THUMBTRACK, GetId() ); event.SetPosition( GetValue() ); @@ -79,7 +79,7 @@ void wxSpinButton::SendThumbTrackEvent() HandleWindowEvent( event ); } -bool wxSpinButton::OSXHandleClicked( double timestampsec ) +bool wxSpinButton::OSXHandleClicked( double WXUNUSED(timestampsec) ) { // all events have already been processed return true; @@ -94,7 +94,7 @@ void wxSpinButton::TriggerScrollEvent(wxEventType scrollEvent) { int inc = 0; - if ( scrollEvent == wxEVT_SCROLL_LINEUP ) + if ( scrollEvent == wxEVT_SCROLL_LINEUP ) { inc = 1; } @@ -102,9 +102,9 @@ void wxSpinButton::TriggerScrollEvent(wxEventType scrollEvent) { inc = -1; } - + // trigger scroll events - + int oldValue = GetValue() ; int newValue = oldValue + inc;