From 4586bf0fccc12328f6f876c527648f9260c406dc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 9 Apr 2002 17:20:24 +0000 Subject: [PATCH] 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 --- CHANGES | 5 + FL/Fl_Tooltip.H | 14 +- documentation/Fl_Widget.html | 392 +++++++++++++++++++++++------------ src/Fl_Box.cxx | 6 +- src/Fl_Group.cxx | 12 +- src/Fl_Tooltip.cxx | 51 ++++- src/Fl_Widget.cxx | 9 +- 7 files changed, 326 insertions(+), 163 deletions(-) diff --git a/CHANGES b/CHANGES index f5812e467..b9d68dd0f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ CHANGES IN FLTK 1.1.0b13 + - Tooltips now appear for inactive and output widgets. + - Tooltips no longer steal keyboard events other than + ESCape. + - Tooltips are no longer delayed when moving between + adjacent widgets. - fl_beep(FL_BEEP_DEFAULT) now uses the PC speaker under Windows (0xFFFFFFFF) rather than an event sound. - The configure script didn't include the -mwindows or diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H index a7dea7cb6..11858d4f4 100644 --- a/FL/Fl_Tooltip.H +++ b/FL/Fl_Tooltip.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tooltip.H,v 1.16.2.5 2002/01/01 15:11:28 easysw Exp $" +// "$Id: Fl_Tooltip.H,v 1.16.2.6 2002/04/09 17:20:23 easysw Exp $" // // Tooltip header file for the Fast Light Tool Kit (FLTK). // @@ -30,17 +30,17 @@ #include -class Fl_TooltipBox; -class Fl_Menu_Window; +class Fl_Tooltip_Box; +class Fl_Tooltip_Window; class FL_EXPORT Fl_Tooltip { - friend class Fl_TooltipBox; + friend class Fl_Tooltip_Box; friend class Fl_Widget; static float delay_; - static Fl_TooltipBox *box; - static Fl_Menu_Window *window; + static Fl_Tooltip_Box *box; + static Fl_Tooltip_Window *window; static Fl_Widget *widget; static int shown; static unsigned color_; @@ -76,5 +76,5 @@ public: #endif // -// End of "$Id: Fl_Tooltip.H,v 1.16.2.5 2002/01/01 15:11:28 easysw Exp $". +// End of "$Id: Fl_Tooltip.H,v 1.16.2.6 2002/04/09 17:20:23 easysw Exp $". // diff --git a/documentation/Fl_Widget.html b/documentation/Fl_Widget.html index 7e4a55425..559e1f5fe 100644 --- a/documentation/Fl_Widget.html +++ b/documentation/Fl_Widget.html @@ -69,10 +69,10 @@ to call redraw() after these.

  • labelsize
  • labeltype
  • output
  • -
  • parent