X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72d750d4620a438af0c0233712622af2e28bad1d..49a91764b57168d9f441578001b3206a7330ee70:/src/mac/spinbutt.cpp?ds=sidebyside diff --git a/src/mac/spinbutt.cpp b/src/mac/spinbutt.cpp index 4003a1a388..fc4e5e5888 100644 --- a/src/mac/spinbutt.cpp +++ b/src/mac/spinbutt.cpp @@ -49,7 +49,7 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, c MacPreControlCreate( parent , id , "" , pos , size ,style,*( (wxValidator*) NULL ) , name , &bounds , title ) ; - m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , true , 0 , 0 , 100, + m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , false , 0 , 0 , 100, kControlLittleArrowsProc , (long) this ) ; wxASSERT_MSG( m_macControl != NULL , "No valid mac control" ) ; @@ -84,11 +84,6 @@ int wxSpinButton::GetValue() const void wxSpinButton::SetValue(int val) { m_value = val ; - wxScrollEvent event(wxEVT_SCROLL_THUMBTRACK, m_windowId); - - event.SetPosition(m_value); - event.SetEventObject( this ); - GetEventHandler()->ProcessEvent(event); } void wxSpinButton::SetRange(int minVal, int maxVal)