]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/spinbutt.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/spinbutt.cpp
3 // Purpose: wxSpinButton
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
15 #include "wx/spinbutt.h"
16 #include "wx/osx/private.h"
19 wxWidgetImplType
* wxWidgetImpl::CreateSpinButton( wxWindowMac
* wxpeer
,
21 wxWindowID
WXUNUSED(id
),
28 long WXUNUSED(extraStyle
))
30 Rect bounds
= wxMacGetBoundsForControl( wxpeer
, pos
, size
);
32 wxMacControl
* peer
= new wxMacControl( wxpeer
);
33 OSStatus err
= CreateLittleArrowsControl(
34 MAC_WXHWND(parent
->MacGetTopLevelWindowRef()), &bounds
, value
,
35 minimum
, maximum
, 1, peer
->GetControlRefAddr() );
38 peer
->SetActionProc( GetwxMacLiveScrollbarActionProc() );
42 #endif // wxUSE_SPINBTN