06-21-2012 11:00 AM
Hi,
I try to remove, disable or customize the application menu of my LabVIEW application on MAC OS X. ![]()
Have any idea to do this?
06-21-2012 03:20 PM
I have not looked recently but I think Apple has some minimum requirements on what must be in that menu and be functional.
Lynn
06-21-2012 04:44 PM
Can't do that.
MacOS requires each application has its own application menu. There may be nothing in there (as defined by the application itself) leaving just the system's services/show/hide/quit items.... but the menu will always be there.
You may be able to bump the program into a "kiosk mode" (if that's what they still call it) where the application takes over the computer like Front Row/AppleTV does.
06-22-2012 02:13 AM
And do you think I can intercept event from this menu?
My problem is the quit option of this menu. In my application I have instruments, and I need to make some stuff before quit the application
I don't know this "kiosk mode" I will look this
06-22-2012 02:36 AM - edited 06-22-2012 02:38 AM
Have you tried the event loop and the Application Instance Close? event?
06-22-2012 02:49 AM
Perfect it works ![]()
I use Application Instance Close? and it's generate when I click Quit or Quit and Close All Windows. The other items are not a problem (hide window).
So I leave this menu, but just discard the quit option and use mine instead.
Thanks ![]()