diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-04 16:43:31 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-04 16:43:31 +0000 |
| commit | 11cc024107b68a32bbe55b10b036fcfd27d47b9e (patch) | |
| tree | faadebbd49f8ebf7e3cd696650b0c2238b318890 /src/Fl_Return_Button.cxx | |
| parent | e4727142d4c48198e708ba2bd4068daf8062abaf (diff) | |
Keyboard navigation for buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Return_Button.cxx')
| -rw-r--r-- | src/Fl_Return_Button.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Fl_Return_Button.cxx b/src/Fl_Return_Button.cxx index c29f2e26e..55723fcb0 100644 --- a/src/Fl_Return_Button.cxx +++ b/src/Fl_Return_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Return_Button.cxx,v 1.5.2.3 2001/01/22 15:13:40 easysw Exp $" +// "$Id: Fl_Return_Button.cxx,v 1.5.2.3.2.1 2001/08/04 16:43:31 easysw Exp $" // // Return button widget for the Fast Light Tool Kit (FLTK). // @@ -53,6 +53,11 @@ void Fl_Return_Button::draw() { if (w()/3 < W) W = w()/3; fl_return_arrow(x()+w()-W-4, y(), W, h()); draw_label(x(), y(), w()-W+4, h()); + if (Fl::focus() == this) { + fl_line_style(FL_DASH); + fl_rect(x() + 4, y() + 4, w() - 8, h() - 8); + fl_line_style(FL_SOLID); + } } int Fl_Return_Button::handle(int event) { @@ -65,5 +70,5 @@ int Fl_Return_Button::handle(int event) { } // -// End of "$Id: Fl_Return_Button.cxx,v 1.5.2.3 2001/01/22 15:13:40 easysw Exp $". +// End of "$Id: Fl_Return_Button.cxx,v 1.5.2.3.2.1 2001/08/04 16:43:31 easysw Exp $". // |
