diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-09 17:20:24 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-09 17:20:24 +0000 |
| commit | 4586bf0fccc12328f6f876c527648f9260c406dc (patch) | |
| tree | c029e3aa1f8e54189132aabf332eb838227d3347 /src/Fl_Widget.cxx | |
| parent | 17374b20bb7bc6230170e341105bed9f2e4e3b05 (diff) | |
Tooltip fixes: ignore keyboard events, immediately disable new tooltips,
show tooltips for box widgets.
Add docos for Fl_Widget::tooltip() methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget.cxx')
| -rw-r--r-- | src/Fl_Widget.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index aaa8ff69e..190018434 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.cxx,v 1.5.2.4.2.14 2002/01/07 20:40:02 easysw Exp $" +// "$Id: Fl_Widget.cxx,v 1.5.2.4.2.15 2002/04/09 17:20:24 easysw Exp $" // // Base widget class for the Fast Light Tool Kit (FLTK). // @@ -68,7 +68,10 @@ Fl_Widget *Fl::readqueue() { //////////////////////////////////////////////////////////////// -int Fl_Widget::handle(int) {return 0;} +int Fl_Widget::handle(int event) { + if (event == FL_ENTER || event == FL_LEAVE) return 1; + else return 0; +} int FL_NORMAL_SIZE = 14; @@ -248,5 +251,5 @@ int Fl_Widget::contains(const Fl_Widget *o) const { } // -// End of "$Id: Fl_Widget.cxx,v 1.5.2.4.2.14 2002/01/07 20:40:02 easysw Exp $". +// End of "$Id: Fl_Widget.cxx,v 1.5.2.4.2.15 2002/04/09 17:20:24 easysw Exp $". // |
