From 9e2f36201612e978f2f518ed7220af42d06264cd Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 12 Apr 2002 20:16:07 +0000 Subject: 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 --- src/Fl_Box.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/Fl_Box.cxx') 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 $". // -- cgit v1.2.3