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:
@@ -34,6 +34,11 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID winid,
|
|||||||
return false;
|
return false;
|
||||||
SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]);
|
SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]);
|
||||||
[m_cocoaNSView release];
|
[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 setTarget: sm_cocoaTarget];
|
||||||
[(NSStepper*)m_cocoaNSView setAction:@selector(wxNSControlAction:)];
|
[(NSStepper*)m_cocoaNSView setAction:@selector(wxNSControlAction:)];
|
||||||
if(m_parent)
|
if(m_parent)
|
||||||
|
Reference in New Issue
Block a user