X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..40d601782ec2466a02eab190aeb59ee168a12ea9:/src/mac/carbon/spinbutt.cpp diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index c2b0a7bbc2..87db4b041a 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/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 , false , 0 , 0 , 100, + m_macControl = ::NewControl( parent->MacGetRootWindow() , &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) @@ -166,17 +161,6 @@ void wxSpinButton::MacHandleControlClick( ControlHandle control , SInt16 control wxSize wxSpinButton::DoGetBestSize() const { - if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 ) - { - // vertical control - return wxSize(16, - 2*16); - } - else - { - // horizontal control - return wxSize(2*16, - 16); - } + return wxSize(16,24); }