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:
parent
d803176a8e
commit
519fa7734f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user