diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index 5240ef76be..d5c590caeb 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -202,7 +202,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { - if ( !wxListBoxBase::Create(parent, id, pos, size, style, validator, name) ) + if ( !wxListBoxBase::Create(parent, id, pos, size, style & ~(wxHSCROLL|wxVSCROLL), validator, name) ) return false; m_noItems = 0 ; // this will be increased by our append command diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 183c86981c..90871927da 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -683,7 +683,7 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, m_macUsesTXN &= (TXNInitTextension != (void*) kUnresolvedCFragSymbolAddress) ; // base initialization - if ( !wxTextCtrlBase::Create(parent, id, pos, size, style, validator, name) ) + if ( !wxTextCtrlBase::Create(parent, id, pos, size, style & ~(wxHSCROLL|wxVSCROLL), validator, name) ) return FALSE; wxSize mySize = size ; diff --git a/src/mac/listbox.cpp b/src/mac/listbox.cpp index 5240ef76be..d5c590caeb 100644 --- a/src/mac/listbox.cpp +++ b/src/mac/listbox.cpp @@ -202,7 +202,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { - if ( !wxListBoxBase::Create(parent, id, pos, size, style, validator, name) ) + if ( !wxListBoxBase::Create(parent, id, pos, size, style & ~(wxHSCROLL|wxVSCROLL), validator, name) ) return false; m_noItems = 0 ; // this will be increased by our append command diff --git a/src/mac/textctrl.cpp b/src/mac/textctrl.cpp index 183c86981c..90871927da 100644 --- a/src/mac/textctrl.cpp +++ b/src/mac/textctrl.cpp @@ -683,7 +683,7 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, m_macUsesTXN &= (TXNInitTextension != (void*) kUnresolvedCFragSymbolAddress) ; // base initialization - if ( !wxTextCtrlBase::Create(parent, id, pos, size, style, validator, name) ) + if ( !wxTextCtrlBase::Create(parent, id, pos, size, style & ~(wxHSCROLL|wxVSCROLL), validator, name) ) return FALSE; wxSize mySize = size ;