From: Robin Dunn Date: Mon, 26 Jan 2004 22:59:38 +0000 (+0000) Subject: wxMac needs the scroll styles X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2659dad3209167f248dcae39a7ee25d2f8c91ff9 wxMac needs the scroll styles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index a9ca85c5c1..8d03e9c92d 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -150,6 +150,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent, long style, const wxString& name) { +#ifdef __WXMAC__ + style |= wxVSCROLL | wxHSCROLL; +#endif wxControl::Create(parent, id, pos, size, style | wxWANTS_CHARS | wxCLIP_CHILDREN, wxDefaultValidator, name); diff --git a/contrib/src/stc/stc.cpp.in b/contrib/src/stc/stc.cpp.in index d94ba9ac68..b10b081bb7 100644 --- a/contrib/src/stc/stc.cpp.in +++ b/contrib/src/stc/stc.cpp.in @@ -150,6 +150,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent, long style, const wxString& name) { +#ifdef __WXMAC__ + style |= wxVSCROLL | wxHSCROLL; +#endif wxControl::Create(parent, id, pos, size, style | wxWANTS_CHARS | wxCLIP_CHILDREN, wxDefaultValidator, name); diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index a9ca85c5c1..8d03e9c92d 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -150,6 +150,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent, long style, const wxString& name) { +#ifdef __WXMAC__ + style |= wxVSCROLL | wxHSCROLL; +#endif wxControl::Create(parent, id, pos, size, style | wxWANTS_CHARS | wxCLIP_CHILDREN, wxDefaultValidator, name); diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index d94ba9ac68..b10b081bb7 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -150,6 +150,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent, long style, const wxString& name) { +#ifdef __WXMAC__ + style |= wxVSCROLL | wxHSCROLL; +#endif wxControl::Create(parent, id, pos, size, style | wxWANTS_CHARS | wxCLIP_CHILDREN, wxDefaultValidator, name);