]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/spinbutt.mm
guarding open combo box against AppDefined NSEvents issued by wxEventLoop::WakeUp...
[wxWidgets.git] / src / osx / cocoa / spinbutt.mm
index 4230bad5e9b1d036e7a9c435b1f3776750a7de73..e7c62980c19d02d587ab4b60852b2e466afed88f 100644 (file)
@@ -1,10 +1,10 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        spinbutt.cpp
+// Name:        src/osx/cocoa/spinbutt.mm
 // Purpose:     wxSpinButton
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     1998-01-01
-// RCS-ID:      $Id: spinbutt.cpp 54129 2008-06-11 19:30:52Z SC $
+// RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
 // Licence:       wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -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;
 }