diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-08-10 23:11:51 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-08-10 23:11:51 +0000 |
| commit | af39242da6b5aa97ecbe4d197b1698906b347689 (patch) | |
| tree | 7eb9988aec5fd55d73653d25e2980e7e5ea42642 /FL | |
| parent | 7410f80a844d0a4fdd4bc423bc792d3acb28a152 (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Text_Display.H | 2 |
1 files changed, 2 insertions, 0 deletions
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, |
