]> git.saurik.com Git - wxWidgets.git/commitdiff
removing scroll flags before instantiation the base class
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 5 Sep 2003 14:38:03 +0000 (14:38 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 5 Sep 2003 14:38:03 +0000 (14:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/listbox.cpp
src/mac/carbon/textctrl.cpp
src/mac/listbox.cpp
src/mac/textctrl.cpp

index 5240ef76be94d96be09909d790a70ed8258a2712..d5c590caeb37523d6c210fec38887eae35704ca3 100644 (file)
@@ -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
index 183c86981c919257767f1213a242fde3dad3f4af..90871927da1b9822193d6fdf24188f0c2b6d17bc 100644 (file)
@@ -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 ;
index 5240ef76be94d96be09909d790a70ed8258a2712..d5c590caeb37523d6c210fec38887eae35704ca3 100644 (file)
@@ -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
index 183c86981c919257767f1213a242fde3dad3f4af..90871927da1b9822193d6fdf24188f0c2b6d17bc 100644 (file)
@@ -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 ;