|
|
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.
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 ] | |
|
| |