diff options
Diffstat (limited to 'src/Fl_Input_.cxx')
| -rw-r--r-- | src/Fl_Input_.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index e82d8badb..1e74c309a 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1024,6 +1024,16 @@ Fl_Input_::~Fl_Input_() { if (bufsize) free((void*)buffer); } +int Fl_Input_::linesPerPage() { + int n = 1; + if (input_type() == FL_MULTILINE_INPUT) { + fl_font(textfont(),textsize()); //ensure current font is set to ours + n = h()/fl_height(); // number of lines to scroll + if (n<=0) n = 1; + } + return n; +} + // // End of "$Id$". // |
