From 2659dad3209167f248dcae39a7ee25d2f8c91ff9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 26 Jan 2004 22:59:38 +0000 Subject: [PATCH] wxMac needs the scroll styles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/stc/stc.cpp | 3 +++ contrib/src/stc/stc.cpp.in | 3 +++ src/stc/stc.cpp | 3 +++ src/stc/stc.cpp.in | 3 +++ 4 files changed, 12 insertions(+) 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); -- 2.45.2