From ca15addad29e97d06a477895877e72b301a0529c Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 17 Mar 2000 09:38:20 +0000 Subject: Fixed up the colors the browser draws when it is deactivated, it does not change the background color, this fixes Jeff Meininger's demo. Fl_Input allows ^I, ^J, ^L, and ^M to be typed as control characters and inserted. If you type ^H or ^? they act like backspace and delete. Clicking on an input field no longer selects the whole thing, it inserts the cursor. My tests of Win32 to see what they did were wrong, this is a better simulation and more user friendly, too. Fixed divide-by-zer in the slider code? Better osf code for filename_list from Alexander Mai git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Browser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_Browser.cxx') diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx index 8d3c67efc..f128b2a7a 100644 --- a/src/Fl_Browser.cxx +++ b/src/Fl_Browser.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Browser.cxx,v 1.9.2.8 2000/01/11 16:03:55 mike Exp $" +// "$Id: Fl_Browser.cxx,v 1.9.2.9 2000/03/17 09:38:17 bill Exp $" // // Browser widget for the Fast Light Tool Kit (FLTK). // @@ -369,9 +369,9 @@ void Fl_Browser::item_draw(void* v, int x, int y, int w, int h) const { } BREAK: fl_font(font, size); - if (!active_r()) lcol = inactive(lcol); if (((FL_BLINE*)v)->flags & SELECTED) lcol = contrast(lcol, selection_color()); + if (!active_r()) lcol = inactive(lcol); fl_color(lcol); fl_draw(str, x+3, y, w1-6, h, e ? Fl_Align(align|FL_ALIGN_CLIP) : align); if (!e) break; // no more fields... @@ -493,5 +493,5 @@ int Fl_Browser::value() const { } // -// End of "$Id: Fl_Browser.cxx,v 1.9.2.8 2000/01/11 16:03:55 mike Exp $". +// End of "$Id: Fl_Browser.cxx,v 1.9.2.9 2000/03/17 09:38:17 bill Exp $". // -- cgit v1.2.3