summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-12-18 15:19:15 +0000
committerManolo Gouy <Manolo>2017-12-18 15:19:15 +0000
commitd361de4d0d3bc346021beaab053b30dcfc7fb153 (patch)
tree22677be12ad86f3908a4929edb04616513b265f7 /test
parentf24ee501b91354487a4b52f10bcf9ab192105b07 (diff)
STR#3437 : Support display of windows in tabbed form as in MacOS 10.12 Sierra
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/menubar.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx
index 6062db889..40bc9ffbe 100644
--- a/test/menubar.cxx
+++ b/test/menubar.cxx
@@ -3,7 +3,7 @@
//
// Menubar test program for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -199,6 +199,7 @@ void menu_location_cb(Fl_Widget* w, void* data)
smenubar->callback(test_cb);
}
else { // switch to window menu bar
+ menubar->menu(smenubar->menu());
smenubar->clear();
delete smenubar;
menubar->show();
@@ -246,6 +247,8 @@ int main(int argc, char **argv) {
Fl_Choice ch2(500,100,150,25,"Use:");
ch2.menu(menu_location);
ch2.callback(menu_location_cb, &menubar);
+ ch2.value(1);
+ menu_location_cb(&ch2, &menubar);
#endif
window.end();
@@ -257,6 +260,7 @@ int main(int argc, char **argv) {
{0}
};
Fl_Mac_App_Menu::custom_application_menu_items(custom);
+ //Fl_Sys_Menu_Bar::window_menu_style(Fl_Sys_Menu_Bar::no_window_menu);
#endif
window.show(argc, argv);
return Fl::run();