From af39242da6b5aa97ecbe4d197b1698906b347689 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 10 Aug 2005 23:11:51 +0000 Subject: Fl_Text_Display now auto-scrolls in all directions (STR #915). This is implemented using a timer event. The scroll speed is proportional to the distance of the cursor to the text area git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Text_Display.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FL/Fl_Text_Display.H') diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index 84e937b60..7e94ef001 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -166,6 +166,8 @@ class FL_EXPORT Fl_Text_Display: public Fl_Group { int position_to_line( int pos, int* lineNum ); int string_width(const char* string, int length, int style); + static void scroll_timer_cb(void*); + static void buffer_predelete_cb(int pos, int nDeleted, void* cbArg); static void buffer_modified_cb(int pos, int nInserted, int nDeleted, int nRestyled, const char* deletedText, -- cgit v1.2.3