From 836d2fac260c861106e0d96203bea4a04c9dd2d2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 2 Aug 2001 15:32:00 +0000 Subject: Fix tooltips a la 2.0. Update 1.1 tooltip interface to be identical to the 2.0 interface for most things (no enter_area function right now...) Add localized makedepend files (no system include files, just ../FL/bla.h) so that builds recompile as necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Widget.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Fl_Widget.cxx') diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index 1ba161afd..f10655e3d 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.cxx,v 1.5.2.4 2001/01/22 15:13:40 easysw Exp $" +// "$Id: Fl_Widget.cxx,v 1.5.2.4.2.1 2001/08/02 15:31:59 easysw Exp $" // // Base widget class for the Fast Light Tool Kit (FLTK). // @@ -26,6 +26,8 @@ #include #include #include +#include + //////////////////////////////////////////////////////////////// // for compatability with Forms, all widgets without callbacks are @@ -93,6 +95,11 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) { if (Fl_Group::current()) Fl_Group::current()->add(this); } +void Fl_Widget::tooltip(const char *t) { + Fl_Tooltip::enable(); + tooltip_ = t; +} + void Fl_Widget::resize(int X, int Y, int W, int H) { x_ = X; y_ = Y; w_ = W; h_ = H; } @@ -198,5 +205,5 @@ int Fl_Widget::contains(const Fl_Widget *o) const { } // -// End of "$Id: Fl_Widget.cxx,v 1.5.2.4 2001/01/22 15:13:40 easysw Exp $". +// End of "$Id: Fl_Widget.cxx,v 1.5.2.4.2.1 2001/08/02 15:31:59 easysw Exp $". // -- cgit v1.2.3