]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vscroll.cpp
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / generic / vscroll.cpp
index 0048bd75b02b5faf8962e9168cde46e6698fca64..efbef67e3344e8953c598ea2e733dbdd28e4c1a4 100644 (file)
@@ -137,11 +137,24 @@ bool wxVarScrollHelperEvtHandler::ProcessEvent(wxEvent& event)
         }
     }
 #if wxUSE_MOUSEWHEEL
+    // Use GTK's own scroll wheel handling in GtkScrolledWindow
+#ifndef __WXGTK20__
     else if ( evType == wxEVT_MOUSEWHEEL )
     {
         m_scrollHelper->HandleOnMouseWheel((wxMouseEvent &)event);
     }
+#endif
 #endif // wxUSE_MOUSEWHEEL
+    else if ( evType == wxEVT_CHAR &&
+                (m_scrollHelper->GetOrientation() == wxVERTICAL) )
+    {
+        m_scrollHelper->HandleOnChar((wxKeyEvent &)event);
+        if ( !event.GetSkipped() )
+        {
+            processed = true;
+            wasSkipped = false;
+        }
+    }
 
     event.Skip(wasSkipped);