From 5134c0988d39c40c6c0e0ca5edcb31f2d28e8954 Mon Sep 17 00:00:00 2001
From: Matthias Melcher
Date: Thu, 24 Apr 2008 09:01:37 +0000
Subject: Fixed issues with Fl_Scroll inside and Fl_Scroll (STR #265)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
CHANGES | 3 +++
FL/Fl_Scroll.H | 2 +-
documentation/Fl_Scroll.html | 12 ++++++------
src/Fl_Scroll.cxx | 19 +++++++++++++++----
4 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/CHANGES b/CHANGES
index 289fe493b..8d0a28f3f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
CHANGES IN FLTK 1.3.0
+ - added scroll_to() to Fl_Scroll, replacing position()
+ which now behaves as it should (STR #1303)
+ - fixed Fl_Scroll inside Fl_Scroll (STR #265)
- hardcoded 1.1 references in src/Makefile to 1.3
(STR #1922)
- changed font index to 32 bit
diff --git a/FL/Fl_Scroll.H b/FL/Fl_Scroll.H
index 9d2846712..0838c54f0 100644
--- a/FL/Fl_Scroll.H
+++ b/FL/Fl_Scroll.H
@@ -68,7 +68,7 @@ public:
int xposition() const {return xposition_;}
int yposition() const {return yposition_;}
- void position(int, int);
+ void scroll_to(int, int);
void clear();
};
diff --git a/documentation/Fl_Scroll.html b/documentation/Fl_Scroll.html
index 2a332e762..c30ca19d3 100644
--- a/documentation/Fl_Scroll.html
+++ b/documentation/Fl_Scroll.html
@@ -52,15 +52,13 @@ space for the scrollbars, as Fluid won't show these either.
You cannot use Fl_Window as a child of this since the
clipping is not conveyed to it when drawn, and it will draw over the
scrollbars and neighboring objects.
-Fl_Scroll widgets should not be nested. Having an Fl_Scroll
-inside another Fl_Scroll may result in drawing errors when resizing.
Methods
@@ -100,6 +98,8 @@ considered. The flags in hscrollbar however are ignored.
Gets the current horizontal scrolling position.
Gets the current vertical scrolling position.
-
- Sets the upper-lefthand corner of the scrolling region.