Skip to content

Commit

Permalink
Added inline function make_visible(n) to scroll it to show line n.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
spitzak committed Aug 20, 1999
1 parent fb52f23 commit 1706466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FL/Fl_Browser.H
@@ -1,5 +1,5 @@
//
// "$Id: Fl_Browser.H,v 1.8.2.1 1999/06/20 14:38:12 mike Exp $"
// "$Id: Fl_Browser.H,v 1.8.2.2 1999/08/20 07:54:36 bill Exp $"
//
// Browser header file for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -105,6 +105,7 @@ public:
void column_widths(const int* l) {column_widths_ = l;}

int displayed(int n) const {return Fl_Browser_::displayed(find_line(n));}
void make_visible(int n) {Fl_Browser_::display(find_line(n));}

// for back compatability only:
void replace(int a, const char* b) {text(a, b);}
Expand All @@ -114,5 +115,5 @@ public:
#endif

//
// End of "$Id: Fl_Browser.H,v 1.8.2.1 1999/06/20 14:38:12 mike Exp $".
// End of "$Id: Fl_Browser.H,v 1.8.2.2 1999/08/20 07:54:36 bill Exp $".
//

0 comments on commit 1706466

Please sign in to comment.