git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2012-01-04 07:54:00 +00:00
parent 13b4df952c
commit 916a96c961

View File

@ -111,9 +111,14 @@ wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer,
[v setMaxValue: maximum];
[v setIntValue: value];
if ( style & wxSP_WRAP )
[v setValueWraps:YES];
if ( style & wxSP_HORIZONTAL )
[v rotateByAngle:90.0];
BOOL wrap = NO;
if ( style & wxSP_WRAP )
wrap = YES;
[v setValueWraps:wrap];
wxWidgetCocoaImpl* c = new wxSpinButtonCocoaImpl( wxpeer, v );
return c;
}