X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..a51e79e87db3512823258d487849bb7e7947b700:/src/osx/cocoa/spinbutt.mm diff --git a/src/osx/cocoa/spinbutt.mm b/src/osx/cocoa/spinbutt.mm index 907fac8b14..e7c62980c1 100644 --- a/src/osx/cocoa/spinbutt.mm +++ b/src/osx/cocoa/spinbutt.mm @@ -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; }