]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/spinbutt.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #include "wx/spinbutt.h"
17 #include "wx/osx/private.h"
20 wxWidgetImplType
* wxWidgetImpl::CreateSpinButton( wxWindowMac
* wxpeer
,
22 wxWindowID
WXUNUSED(id
),
29 long WXUNUSED(extraStyle
))
31 Rect bounds
= wxMacGetBoundsForControl( wxpeer
, pos
, size
);
33 wxMacControl
* peer
= new wxMacControl( wxpeer
);
34 OSStatus err
= CreateLittleArrowsControl(
35 MAC_WXHWND(parent
->MacGetTopLevelWindowRef()), &bounds
, value
,
36 minimum
, maximum
, 1, peer
->GetControlRefAddr() );
39 peer
->SetActionProc( GetwxMacLiveScrollbarActionProc() );
43 #endif // wxUSE_SPINBTN