]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/window.h
TRUE instead of true
[wxWidgets.git] / include / wx / window.h
index 7c90cd042d91324712668c12e3ee1f2a4d423ddc..3f453930d61ce8afe94eb8e8716dfefe636af7b7 100644 (file)
@@ -663,6 +663,18 @@ public:
     virtual void ScrollWindow( int dx, int dy,
                                const wxRect* rect = (wxRect *) NULL ) = 0;
 
+        // scrolls window by line/page: note that not all controls support this
+        //
+        // return TRUE if the position changed, FALSE otherwise
+    virtual bool ScrollLines(int WXUNUSED(lines)) { return FALSE; }
+    virtual bool ScrollPages(int WXUNUSED(pages)) { return FALSE; }
+
+        // convenient wrappers for ScrollLines/Pages
+    bool LineUp() { return ScrollLines(-1); }
+    bool LineDown() { return ScrollLines(1); }
+    bool PageUp() { return ScrollPages(-1); }
+    bool PageDown() { return ScrollPages(1); }
+
     // context-sensitive help
     // ----------------------