summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-09-12 00:49:45 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-09-12 00:49:45 +0200
commitcda56fc88208ee0f7838d0e3679e5ac959ad923f (patch)
tree9365dd34cbafd8161a92371b6cdeebd4968d2bc0 /src
parente8ed178e5af3ab1ca927073ea1a54ce33bf068bb (diff)
downloadfpGUI-cda56fc88208ee0f7838d0e3679e5ac959ad923f.tar.xz
treeview: up/down scrollbar buttons now scroll one line and not one pixel.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_tree.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/fpg_tree.pas b/src/gui/fpg_tree.pas
index 00ab6c8e..30305b04 100644
--- a/src/gui/fpg_tree.pas
+++ b/src/gui/fpg_tree.pas
@@ -1232,6 +1232,7 @@ begin
FVScrollbar.Min := 0;
FVScrollbar.Max := (GetNodeHeightSum * GetNodeHeight) - VisibleHeight + FHScrollbar.Height;
FVScrollbar.PageSize := (VisibleHeight div 4) * 3; // three quarters of the height
+ FVScrollbar.ScrollStep := GetNodeHeight; // up/down buttons move the height of the font
FHScrollbar.Min := 0;
FHScrollbar.Max := MaxNodeWidth - VisibleWidth + FVScrollbar.Width;
FHScrollbar.PageSize := (VisibleWidth div 4) * 3; // three quarters of the height