X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9a4f2295344414e2ee4e3ec27fa5292918dff27..2f7baaeccf143a4606c463bd50b1bd995fd3d18a:/src/osx/cocoa/spinbutt.mm diff --git a/src/osx/cocoa/spinbutt.mm b/src/osx/cocoa/spinbutt.mm index e050702a2f..e7c62980c1 100644 --- a/src/osx/cocoa/spinbutt.mm +++ b/src/osx/cocoa/spinbutt.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: spinbutt.cpp +// Name: src/osx/cocoa/spinbutt.mm // Purpose: wxSpinButton // Author: Stefan Csomor // Modified by: @@ -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; }