From c468a521b012b87914030a45f0fdced1be87de67 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 14 Jun 2006 10:48:36 +0000 Subject: STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus. Of course, poping up a tooltip window does *not* disable further tooltips... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/menubar.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/menubar.cxx b/test/menubar.cxx index 92eee5796..787c939b3 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -184,9 +184,11 @@ int main(int argc, char **argv) { menubar.callback(test_cb); menus[0] = &menubar; Fl_Menu_Button mb1(100,100,120,25,"&menubutton"); mb1.menu(pulldown); + mb1.tooltip("this is a menu button"); mb1.callback(test_cb); menus[1] = &mb1; Fl_Choice ch(300,100,80,25,"&choice:"); ch.menu(pulldown); + ch.tooltip("this is a choice menu"); ch.callback(test_cb); menus[2] = &ch; Fl_Menu_Button mb(0,0,WIDTH,400,"&popup"); -- cgit v1.2.3