Re: [fltk.general] Re: Use native parent window with fltk widgets to retain Mac menubar of parent application

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Use native parent window with fltk widgets to retain Mac menubar of parent application Bill Spitzak 10:45 Sep 24 top right image
 
I think we are talking about the same thing. Basically, if the FLTK program does not make any calls to Fl_Sys_Menu_Bar, then the menu bar on the top of the mac is left absolutely unchanged (either as whatever another toolkit set it to, or whatever the default behavior of Mac is when you don't do anything). It sounds like the current FLTK messes with the top menu when the programmer does nothing, which I don't think is correct behavior.

For avoiding having to change your code depending on the platform, I think a window subclass (MainWindow?) would work. If a Sys_Menu_Bar is set up on a system that does not have such a menubar, these windows move all the widgets down sufficiently and add a regular MenuBar. This would allow the programmer to select what window(s) get menu bars, rather than a single one or all of them.

On Fri, Sep 24, 2021 at 9:03 AM Manolo <manolo.gouy@gmail.com> wrote:


Le jeudi 23 septembre 2021 à 19:37:00 UTC+2, spitzak a écrit :
It would certainly be nice if this "no window menu" behavior was automatic if the fltk program did not try to set the main menu!

I'm not sure to grasp what exactly is meant here, but I've seen one situation that could be improved :
when FLTK is used on macOS while another toolkit creates the mac system menu.
The git repository for 1.4 now supports such situation without asking the user to set explicitly
     Fl_Sys_Menu_Bar::window_menu_style(Fl_Sys_Menu_Bar::no_window_menu);

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/791c7acc-0cbc-4782-8d91-91307e1a5860n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CAL-8oAjGW%3DdAWLcP%2BCAH4QJV8UBLxtSYSH%3D0wmLMbqhVWXK9Yg%40mail.gmail.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.