X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/724852daae642bbba3e02e11e972e747ed106190..e538985edcc645878a1bbeb3dc3e898e9d29ad11:/src/osx/spinctrl_osx.cpp diff --git a/src/osx/spinctrl_osx.cpp b/src/osx/spinctrl_osx.cpp index a5849cde3f..1a582d7f6c 100644 --- a/src/osx/spinctrl_osx.cpp +++ b/src/osx/spinctrl_osx.cpp @@ -66,7 +66,7 @@ protected: event.SetEventObject( GetParent() ); GetParent()->HandleWindowEvent(event); } - + void OnKillFocus(wxFocusEvent& event) { long l; @@ -102,7 +102,7 @@ protected: m_spin->m_oldValue = l; } - + // delegate to parent control event.SetEventObject( GetParent() ); GetParent()->HandleWindowEvent(event); @@ -250,7 +250,7 @@ bool wxSpinCtrl::Create(wxWindow *parent, } wxSize csize = size ; - m_text = new wxSpinCtrlText(this, value, style & wxTE_PROCESS_ENTER ? wxTE_PROCESS_ENTER : 0 ); + m_text = new wxSpinCtrlText(this, value, style & ( wxTE_PROCESS_ENTER | wxALIGN_MASK ) ); m_btn = new wxSpinCtrlButton(this, style); m_btn->SetRange(min, max);