+ // the creation rect defines the orientation
+ NSRect createRect = ( style & wxSB_HORIZONTAL ) ? NSMakeRect(r.origin.x, r.origin.y , 17, 16) :
+ NSMakeRect(r.origin.x, r.origin.y , 16, 17);
+ wxNSScroller* v = [[wxNSScroller alloc] initWithFrame:createRect];
+ [v setFrame:r];