X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19c7ac3d3bf1ac2113505a805a79c40ce3db1f5b..bc5c09a3aa3662137da2d781c0b101a598d2650d:/src/osx/spinbutt_osx.cpp diff --git a/src/osx/spinbutt_osx.cpp b/src/osx/spinbutt_osx.cpp index 15ea37ef37..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::HandleClicked( 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;