summaryrefslogtreecommitdiff
path: root/src/Fl_Value_Slider.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-05-14 09:07:09 +0000
committerBill Spitzak <spitzak@gmail.com>1999-05-14 09:07:09 +0000
commitce68c7386cf90ef28e7cc88a2a2449620f5703a4 (patch)
tree9e403c349001e07382365affc7aaaecdeca888ce /src/Fl_Value_Slider.cxx
parent4e66f937698fd0792c17db2085d99ee5985c81ff (diff)
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
Diffstat (limited to 'src/Fl_Value_Slider.cxx')
-rw-r--r--src/Fl_Value_Slider.cxx16
1 files changed, 12 insertions, 4 deletions
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 $".
//