implement non-wrapping for wxSpinCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton 2005-04-22 00:58:23 +00:00
parent d803176a8e
commit 519fa7734f

View File

@ -34,6 +34,11 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID winid,
return false;
SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
//flag handling (note wxSP_HORIZONTAL IS _NOT_ Supported in cocoa)
[(NSStepper*)m_cocoaNSView setValueWraps:style & wxSP_WRAP]; //default == true, evidently
//final setup
[(NSStepper*)m_cocoaNSView setTarget: sm_cocoaTarget];
[(NSStepper*)m_cocoaNSView setAction:@selector(wxNSControlAction:)];
if(m_parent)