diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-12 20:16:07 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-12 20:16:07 +0000 |
| commit | 9e2f36201612e978f2f518ed7220af42d06264cd (patch) | |
| tree | 2b48c0e01c7212fdde803f6d9382ea0f32f55ec4 /src/Fl_Box.cxx | |
| parent | aab290b5039910e59ce7aaf0196b4e03aa061600 (diff) | |
Move ENTER/LEAVE handling to Fl_Box so that the default event handler
in Fl_Widget doesn't interfere with existing widgets.
Remove unnecessary strcasecmp defines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Box.cxx')
| -rw-r--r-- | src/Fl_Box.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Fl_Box.cxx b/src/Fl_Box.cxx index e8ab59998..fd2b70793 100644 --- a/src/Fl_Box.cxx +++ b/src/Fl_Box.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Box.cxx,v 1.4.2.3.2.2 2002/04/09 17:20:23 easysw Exp $" +// "$Id: Fl_Box.cxx,v 1.4.2.3.2.3 2002/04/12 20:16:07 easysw Exp $" // // Box widget for the Fast Light Tool Kit (FLTK). // @@ -31,6 +31,12 @@ void Fl_Box::draw() { draw_label(); } +int Fl_Box::handle(int event) { + if (event == FL_ENTER || event == FL_LEAVE) return 1; + else return 0; +} + + // -// End of "$Id: Fl_Box.cxx,v 1.4.2.3.2.2 2002/04/09 17:20:23 easysw Exp $". +// End of "$Id: Fl_Box.cxx,v 1.4.2.3.2.3 2002/04/12 20:16:07 easysw Exp $". // |
