summaryrefslogtreecommitdiff
path: root/src/Fl_Light_Button.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-04 20:17:10 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-04 20:17:10 +0000
commit03f49329ff670c072aaddabf8f1beaf4f69e5bd9 (patch)
tree69e172b3f16aabaa9481eb7c6985e8892db6c84a /src/Fl_Light_Button.cxx
parent2636d6fcd23976cb237b0d50a2f417a067d7fea5 (diff)
New draw_focus() methods.
Keyboard nav for choice, menu button. Updated Fl_Choice to draw like a combo box. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Light_Button.cxx')
-rw-r--r--src/Fl_Light_Button.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Fl_Light_Button.cxx b/src/Fl_Light_Button.cxx
index 288bd126f..3a554ac62 100644
--- a/src/Fl_Light_Button.cxx
+++ b/src/Fl_Light_Button.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.1 2001/08/04 16:43:31 easysw Exp $"
+// "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.2 2001/08/04 20:17:10 easysw Exp $"
//
// Lighted button widget for the Fast Light Tool Kit (FLTK).
//
@@ -85,12 +85,7 @@ void Fl_Light_Button::draw() {
draw_box(FL_THIN_DOWN_BOX, x()+xx, y()+d+1, ww, hh, col);
}
draw_label(x()+W-d, y(), w()-W+d, h());
- if (Fl::focus() == this) {
- fl_line_style(FL_DASH);
- fl_rect(x() + Fl::box_dx(box()), y() + Fl::box_dy(box()),
- w() - Fl::box_dw(box()) - 1, h() - Fl::box_dh(box()) - 1);
- fl_line_style(FL_SOLID);
- }
+ if (Fl::focus() == this) draw_focus();
}
int Fl_Light_Button::handle(int event) {
@@ -110,5 +105,5 @@ Fl_Light_Button::Fl_Light_Button(int x, int y, int w, int h, const char* l)
}
//
-// End of "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.1 2001/08/04 16:43:31 easysw Exp $".
+// End of "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.2 2001/08/04 20:17:10 easysw Exp $".
//