diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-06-14 10:48:36 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-06-14 10:48:36 +0000 |
| commit | c468a521b012b87914030a45f0fdced1be87de67 (patch) | |
| tree | e345bd056a685bbf65808e56dc3155a4d2d8abb0 /test | |
| parent | bc03e9b1a96b8cfef8ba5fb153845372f4aea69c (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/menubar.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |
