From ce68c7386cf90ef28e7cc88a2a2449620f5703a4 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 14 May 1999 09:07:09 +0000 Subject: Colors in cmap changed to use 0xFF instead of 0xF4. Drawing of scrollbars altered somewhat so that the box (if any) goes around the buttons, this seems to match the design that other toolkits use. Hope everybody likes this... This required internal changes to the Fl_Slider and Fl_Value_Slider as well but they should draw exactly the same. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Value_Slider.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/Fl_Value_Slider.cxx') diff --git a/src/Fl_Value_Slider.cxx b/src/Fl_Value_Slider.cxx index cdef3c27b..eae63bd12 100644 --- a/src/Fl_Value_Slider.cxx +++ b/src/Fl_Value_Slider.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Value_Slider.cxx,v 1.5 1999/01/07 19:17:28 mike Exp $" +// "$Id: Fl_Value_Slider.cxx,v 1.5.2.1 1999/05/14 09:07:08 bill Exp $" // // Value slider widget for the Fast Light Tool Kit (FLTK). // @@ -44,7 +44,11 @@ void Fl_Value_Slider::draw() { } else { syy += 25; bhh = 25; shh -= 25; } - Fl_Slider::draw(sxx,syy,sww,shh); + if (damage()&FL_DAMAGE_ALL) draw_box(box(),sxx,syy,sww,shh,color()); + Fl_Slider::draw(sxx+Fl::box_dx(box()), + syy+Fl::box_dy(box()), + sww-Fl::box_dw(box()), + shh-Fl::box_dh(box())); draw_box(box(),bxx,byy,bww,bhh,color()); char buf[128]; format(buf); @@ -60,9 +64,13 @@ int Fl_Value_Slider::handle(int event) { } else { syy += 25; shh -= 25; } - return Fl_Slider::handle(event,sxx,syy,sww,shh); + return Fl_Slider::handle(event, + sxx+Fl::box_dx(box()), + syy+Fl::box_dy(box()), + sww-Fl::box_dw(box()), + shh-Fl::box_dh(box())); } // -// End of "$Id: Fl_Value_Slider.cxx,v 1.5 1999/01/07 19:17:28 mike Exp $". +// End of "$Id: Fl_Value_Slider.cxx,v 1.5.2.1 1999/05/14 09:07:08 bill Exp $". // -- cgit v1.2.3