Pageup/down by correct amount in scrollbar

Handles minimum size of slider in scrollbar when deciding whether to
page up/dwon.

Code from Matt Morrise so that shift+click extends the selection in
the browser (ctrl+click remains for toggling the current item).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Bill Spitzak
2000-01-20 06:14:34 +00:00
parent ecc91867b3
commit fafc3286cd
3 changed files with 77 additions and 62 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
//
// "$Id: browser.cxx,v 1.5.2.1 1999/04/26 06:45:28 bill Exp $"
// "$Id: browser.cxx,v 1.5.2.2 2000/01/20 06:14:34 bill Exp $"
//
// Browser test program for the Fast Light Tool Kit (FLTK).
//
@@ -80,6 +80,7 @@ int main(int argc, char **argv) {
window.box(FL_NO_BOX); // because it is filled with browser
Fl_Select_Browser browser(0,0,400,400,0);
browser.type(FL_MULTI_BROWSER);
//browser.type(FL_HOLD_BROWSER);
//browser.color(42);
browser.callback(b_cb);
// browser.scrollbar_right();
@@ -95,6 +96,6 @@ int main(int argc, char **argv) {
}
//
// End of "$Id: browser.cxx,v 1.5.2.1 1999/04/26 06:45:28 bill Exp $".
// End of "$Id: browser.cxx,v 1.5.2.2 2000/01/20 06:14:34 bill Exp $".
//