summaryrefslogtreecommitdiff
path: root/docview/components/richtext
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-05 16:59:04 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-05 16:59:04 +0200
commit9633e8b8c3fd68c631dbc10abd85ad96800d1657 (patch)
treef85d9c119b18c44f0c845dd262473ad033da5b6a /docview/components/richtext
parent4a381a3b07a8775bc6d8fe2c342d7804168569d6 (diff)
downloadfpGUI-9633e8b8c3fd68c631dbc10abd85ad96800d1657.tar.xz
RichTextView: fixed the scrolling direction when PgUp or PgDn is pressed.
Diffstat (limited to 'docview/components/richtext')
-rw-r--r--docview/components/richtext/RichTextView.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas
index 8eee11b0..5fa57ffc 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -2002,12 +2002,12 @@ end;
Procedure TRichTextView.UpPage;
begin
- SetVerticalPosition( FVScrollbar.Position - FVScrollbar.PageSize );
+ SetVerticalPosition( FVScrollbar.Position + FVScrollbar.PageSize );
end;
Procedure TRichTextView.DownPage;
begin
- SetVerticalPosition( FVScrollbar.Position + FVScrollbar.PageSize );
+ SetVerticalPosition( FVScrollbar.Position - FVScrollbar.PageSize );
end;
Procedure TRichTextView.SmallScrollUp;