X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0faf03bf97720044ae71c72beb4f995425ea174d..0e17930f4329ffc03e2fa89abb7d78deb2d935b5:/src/osx/spinbutt_osx.cpp diff --git a/src/osx/spinbutt_osx.cpp b/src/osx/spinbutt_osx.cpp index f16fe1e072..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() ); @@ -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;