From 073701ce96b9abddd21078a61fbfc4f7668bad5d Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 17 Dec 2001 01:16:48 +0000 Subject: Hide tooltips when hiding a window. Fix box borders for FL_PLASTIC_DOWN_BOX. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 7 +++++-- src/fl_boxtype.cxx | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index d803583ce..f2fe08a13 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.11 2001/12/06 00:17:47 matthiaswm Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.12 2001/12/17 01:16:48 easysw Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -650,6 +650,9 @@ void Fl_Window::hide() { if (!shown()) return; + // Hide any visible tooltips... + Fl_Tooltip::enter(0); + // remove from the list of windows: Fl_X* x = i; Fl_X** pp = &Fl_X::first; @@ -841,5 +844,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.11 2001/12/06 00:17:47 matthiaswm Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.12 2001/12/17 01:16:48 easysw Exp $". // diff --git a/src/fl_boxtype.cxx b/src/fl_boxtype.cxx index f1e862c0e..ba68a490c 100644 --- a/src/fl_boxtype.cxx +++ b/src/fl_boxtype.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_boxtype.cxx,v 1.8.2.4.2.6 2001/12/16 12:37:02 easysw Exp $" +// "$Id: fl_boxtype.cxx,v 1.8.2.4.2.7 2001/12/17 01:16:48 easysw Exp $" // // Box drawing code for the Fast Light Tool Kit (FLTK). // @@ -223,7 +223,7 @@ static struct { {fl_border_frame, 1,1,2,2,0}, // _FL_OVAL_FRAME {fl_rectf, 0,0,0,0,0}, // _FL_OVAL_FLAT_BOX, {fl_up_box, 4,4,8,8,0}, // _FL_PLASTIC_UP_BOX, - {fl_down_box, 4,4,8,8,0}, // _FL_PLASTIC_DOWN_BOX, + {fl_down_box, 2,2,4,4,0}, // _FL_PLASTIC_DOWN_BOX, {fl_up_frame, 2,2,4,4,0}, // _FL_PLASTIC_UP_FRAME, {fl_down_frame, 2,2,4,4,0}, // _FL_PLASTIC_DOWN_FRAME, {fl_up_box, 3,3,6,6,0}, // FL_FREE_BOX+0 @@ -291,5 +291,5 @@ const { } // -// End of "$Id: fl_boxtype.cxx,v 1.8.2.4.2.6 2001/12/16 12:37:02 easysw Exp $". +// End of "$Id: fl_boxtype.cxx,v 1.8.2.4.2.7 2001/12/17 01:16:48 easysw Exp $". // -- cgit v1.2.3