From d361de4d0d3bc346021beaab053b30dcfc7fb153 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 18 Dec 2017 15:19:15 +0000 Subject: 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 --- test/menubar.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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(); -- cgit v1.2.3