]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMac needs the scroll styles
authorRobin Dunn <robin@alldunn.com>
Mon, 26 Jan 2004 22:59:38 +0000 (22:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 26 Jan 2004 22:59:38 +0000 (22:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/stc.cpp
contrib/src/stc/stc.cpp.in
src/stc/stc.cpp
src/stc/stc.cpp.in

index a9ca85c5c16ff28696266f08ae5a3c161ca54d26..8d03e9c92d6cd86ceedd77e1164049bfaf7349a6 100644 (file)
@@ -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);
index d94ba9ac68f65d9f9564bc84b0894aaf41d52eee..b10b081bb71fd13d462931ce16e2a2a7a38772ac 100644 (file)
@@ -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);
index a9ca85c5c16ff28696266f08ae5a3c161ca54d26..8d03e9c92d6cd86ceedd77e1164049bfaf7349a6 100644 (file)
@@ -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);
index d94ba9ac68f65d9f9564bc84b0894aaf41d52eee..b10b081bb71fd13d462931ce16e2a2a7a38772ac 100644 (file)
@@ -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);